using Aurora.Api; using PropertyTools.DataAnnotations; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AuroraChiller.SMC { public class ChillerValues { [Category("ChillerCollant")] public DateTime CHILLER_LAST_COOLANT_CHANGED { get; set; } = DateTime.Now; public DateTime CHILLER_MAIN_BODY_CHANGED { get; set; } = DateTime.Now; } public class ChillerSetting : ISettingItem { [Category("Chiller")] public int WATER_LEVEL_1 { get; set; } public int WATER_LEVEL_2 { get; set; } public int WATER_LEVEL_MAX { get; set; } public int WATER_TIME_1 { get; set; } public int WATER_TIME_2 { get; set; } public int WATER_TIME_MAX { get; set; } public int CHILLER_TIME_1 { get; set; } public int CHILLER_TIME_2 { get; set; } public int CHILLER_TIME_MAX { get; set; } public ChillerValues[] CurrentValues { get; set; } public ChillerSetting(int deviceCount) { CurrentValues = new ChillerValues[deviceCount]; for (int i = 0; i < deviceCount; i++) { CurrentValues[i] = new ChillerValues(); } } public ChillerValues GetChillerCurrentValue(int deviceNo) { return CurrentValues[deviceNo]; } } }