using System.Collections.Generic;
using System.Linq;
namespace IStation.Model
{
///
/// 电力价格月设置
///
public class ElecPriceMonthSetting
{
public ElecPriceMonthSetting() { }
public ElecPriceMonthSetting(ElecPriceMonthSetting rhs)
{
this.Name = rhs.Name;
this.StartMonth = rhs.StartMonth;
this.EndMonth = rhs.EndMonth;
this.HourList = rhs.HourList?.Select(x => new ElecPriceHourSetting(x)).ToList();
this.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; }
}
}