using System.Collections.Generic; using System.Linq; namespace IStation.Model { /// /// 电力价格月设置 /// public class ElecPriceMonthSetting { public ElecPriceMonthSetting() { } public ElecPriceMonthSetting(ElecPriceMonthSetting rhs) { Name = rhs.Name; StartMonth = rhs.StartMonth; EndMonth = rhs.EndMonth; HourList = rhs.HourList?.Select(x => new ElecPriceHourSetting(x)).ToList(); Description = rhs.Description; } /// /// 名称 /// public string Name { get; set; } /// /// 开始月份(1-12) /// public int StartMonth { get; set; } /// /// 结束月份(1-12) /// public int EndMonth { get; set; } /// /// 时列表 /// public List HourList { get; set; } /// /// 备注 /// public string Description { get; set; } } }