| | |
| | | using Newtonsoft.Json; |
| | | using System.Text.Json.Serialization; |
| | | using WIDESEAWCS_S7Simulator.Core.Enums; |
| | | |
| | | namespace WIDESEAWCS_S7Simulator.Core.Entities |
| | |
| | | /// <summary> |
| | | /// 实例唯一标识 |
| | | /// </summary> |
| | | [JsonProperty("id")] |
| | | //[JsonPropertyName("id")] |
| | | public string Id { get; set; } = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// 实例名称 |
| | | /// </summary> |
| | | [JsonProperty("name")] |
| | | //[JsonPropertyName("name")] |
| | | public string Name { get; set; } = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// PLC型号 |
| | | /// </summary> |
| | | [JsonProperty("plcType")] |
| | | //[JsonPropertyName("plcType")] |
| | | public SiemensPLCType PLCType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 监听端口 |
| | | /// </summary> |
| | | [JsonProperty("port")] |
| | | //[JsonPropertyName("port")] |
| | | public int Port { get; set; } |
| | | |
| | | /// <summary> |
| | | /// HSL激活码 |
| | | /// </summary> |
| | | [JsonProperty("activationKey")] |
| | | [JsonPropertyName("activationKey")] |
| | | public string ActivationKey { get; set; } = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// 是否自动启动 |
| | | /// </summary> |
| | | [JsonProperty("autoStart")] |
| | | [JsonPropertyName("autoStart")] |
| | | public bool AutoStart { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 内存区域配置 |
| | | /// </summary> |
| | | [JsonProperty("memoryConfig")] |
| | | [JsonPropertyName("memoryConfig")] |
| | | public MemoryRegionConfig MemoryConfig { get; set; } = new(); |
| | | } |
| | | } |