using System.Text.Json.Serialization; using WIDESEAWCS_S7Simulator.Core.Enums; namespace WIDESEAWCS_S7Simulator.Core.Entities { /// /// S7鏈嶅姟鍣ㄥ疄渚嬮厤缃? /// public class InstanceConfig { /// /// 瀹炰緥鍞竴鏍囪瘑 /// //[JsonPropertyName("id")] public string Id { get; set; } = string.Empty; /// /// 瀹炰緥鍚嶇О /// //[JsonPropertyName("name")] public string Name { get; set; } = string.Empty; /// /// PLC鍨嬪彿 /// //[JsonPropertyName("plcType")] public SiemensPLCType PLCType { get; set; } /// /// 鐩戝惉绔彛 /// //[JsonPropertyName("port")] public int Port { get; set; } /// /// HSL婵€娲荤爜 /// [JsonPropertyName("activationKey")] public string ActivationKey { get; set; } = string.Empty; /// /// 鏄惁鑷姩鍚姩 /// [JsonPropertyName("autoStart")] public bool AutoStart { get; set; } [JsonPropertyName("protocolTemplateId")] public string ProtocolTemplateId { get; set; } = string.Empty; /// /// 鍐呭瓨鍖哄煙閰嶇疆 /// [JsonPropertyName("memoryConfig")] public MemoryRegionConfig MemoryConfig { get; set; } = new(); } }