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