| | |
| | | using System.Text.Json.Serialization; |
| | | using System.Text.Json.Serialization; |
| | | using WIDESEAWCS_S7Simulator.Core.Enums; |
| | | |
| | | namespace WIDESEAWCS_S7Simulator.Core.Entities |
| | | { |
| | | /// <summary> |
| | | /// S7服务器实例配置 |
| | | /// S7鏈嶅姟鍣ㄥ疄渚嬮厤缃? |
| | | /// </summary> |
| | | public class InstanceConfig |
| | | { |
| | | /// <summary> |
| | | /// 实例唯一标识 |
| | | /// 瀹炰緥鍞竴鏍囪瘑 |
| | | /// </summary> |
| | | [JsonPropertyName("id")] |
| | | //[JsonPropertyName("id")] |
| | | public string Id { get; set; } = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// 实例名称 |
| | | /// 瀹炰緥鍚嶇О |
| | | /// </summary> |
| | | [JsonPropertyName("name")] |
| | | //[JsonPropertyName("name")] |
| | | public string Name { get; set; } = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// PLC型号 |
| | | /// PLC鍨嬪彿 |
| | | /// </summary> |
| | | [JsonPropertyName("plcType")] |
| | | //[JsonPropertyName("plcType")] |
| | | public SiemensPLCType PLCType { get; set; } |
| | | |
| | | /// <summary> |
| | | /// 监听端口 |
| | | /// 鐩戝惉绔彛 |
| | | /// </summary> |
| | | [JsonPropertyName("port")] |
| | | //[JsonPropertyName("port")] |
| | | public int Port { get; set; } |
| | | |
| | | /// <summary> |
| | | /// HSL激活码 |
| | | /// HSL婵€娲荤爜 |
| | | /// </summary> |
| | | [JsonPropertyName("activationKey")] |
| | | public string ActivationKey { get; set; } = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// 是否自动启动 |
| | | /// 鏄惁鑷姩鍚姩 |
| | | /// </summary> |
| | | [JsonPropertyName("autoStart")] |
| | | public bool AutoStart { get; set; } |
| | | |
| | | [JsonPropertyName("protocolTemplateId")] |
| | | public string ProtocolTemplateId { get; set; } = string.Empty; |
| | | |
| | | /// <summary> |
| | | /// 内存区域配置 |
| | | /// 鍐呭瓨鍖哄煙閰嶇疆 |
| | | /// </summary> |
| | | [JsonPropertyName("memoryConfig")] |
| | | public MemoryRegionConfig MemoryConfig { get; set; } = new(); |
| | | } |
| | | } |
| | | |