using System; using System.Collections.Generic; using System.Linq; namespace IStation.Model { /// /// 信号类型组 /// public class SignalTypeGroup : BaseModel, System.ICloneable { /// /// /// public SignalTypeGroup() { } /// /// /// public SignalTypeGroup(SignalTypeGroup rhs) : base(rhs) { this.ParentIds = rhs.ParentIds?.ToList(); this.Name = rhs.Name; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// /// public void Reset(SignalTypeGroup rhs) { this.ID = rhs.ID; this.ParentIds = rhs.ParentIds?.ToList(); this.Name = rhs.Name; this.SortCode = rhs.SortCode; this.Description = rhs.Description; } /// /// 父级id列表 /// public List ParentIds { get; set; } /// /// 名称 /// public string Name { get; set; } /// /// 排序码 /// public int SortCode { get; set; } /// /// 说明 /// public string Description { get; set; } /// /// /// public SignalTypeGroup Clone() { return new SignalTypeGroup(this); } object ICloneable.Clone() { return Clone(); } } }