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();
}
}