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("memoryConfig")] public MemoryRegionConfig MemoryConfig { get; set; } = new(); } }