using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Domain { public class AlarmSetting { /// /// HotelID /// public virtual int HotelID { get; set; } /// /// 分类 /// public virtual char Type { get; set; } /// /// Code /// public virtual string Code { get; set; } /// /// Name /// public virtual string Name { get; set; } /// /// EName /// public virtual string EName { get; set; } /// /// Value /// public virtual string Value { get; set; } /// /// Color /// public virtual string Color { get; set; } /// /// Sort /// public virtual int Sort { get; set; } /// /// 与下位机通信ID /// public virtual int ModalTypeID { get; set; } /// /// 是否启用声声音报警 /// public virtual bool Beep { get; set; } /// /// AppApply /// public virtual bool AppApply { get; set; } public override bool Equals(object obj) { AlarmSetting o = obj as AlarmSetting; if (o == null) { return false; } return HotelID == o.HotelID && this.Type == o.Type && Code == o.Code; } public override int GetHashCode() { int hashCode = base.GetHashCode(); hashCode ^= Type.GetHashCode(); if (!String.IsNullOrEmpty(Code)) { hashCode ^= Code.GetHashCode(); } return hashCode; } } }