wanshenmean
2026-03-13 d216edd0e9931d71664f33e625cff6d8131a0fad
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
using System.Text.Json.Serialization;
using WIDESEAWCS_S7Simulator.Core.Enums;
 
namespace WIDESEAWCS_S7Simulator.Core.Entities
{
    /// <summary>
    /// S7服务器实例配置
    /// </summary>
    public class InstanceConfig
    {
        /// <summary>
        /// 实例唯一标识
        /// </summary>
        [JsonPropertyName("id")]
        public string Id { get; set; } = string.Empty;
 
        /// <summary>
        /// 实例名称
        /// </summary>
        [JsonPropertyName("name")]
        public string Name { get; set; } = string.Empty;
 
        /// <summary>
        /// PLC型号
        /// </summary>
        [JsonPropertyName("plcType")]
        public SiemensPLCType PLCType { get; set; }
 
        /// <summary>
        /// 监听端口
        /// </summary>
        [JsonPropertyName("port")]
        public int Port { get; set; }
 
        /// <summary>
        /// HSL激活码
        /// </summary>
        [JsonPropertyName("activationKey")]
        public string ActivationKey { get; set; } = string.Empty;
 
        /// <summary>
        /// 是否自动启动
        /// </summary>
        [JsonPropertyName("autoStart")]
        public bool AutoStart { get; set; }
 
        /// <summary>
        /// 内存区域配置
        /// </summary>
        [JsonPropertyName("memoryConfig")]
        public MemoryRegionConfig MemoryConfig { get; set; } = new();
    }
}