示例#1
0
 /// <summary>
 /// This is the empty constructor for the Appointment entity.
 /// </summary>
 public Appointment()
 {
     Coordinates        = new List <Coordinate>();
     RFDatas            = new List <RFData>();
     SpectraCyberConfig = new SpectraCyberConfig();
     Status             = AppointmentStatusEnum.UNDEFINED;
     Type = AppointmentTypeEnum.UNDEFINED;
 }
        /// <summary>
        /// Checks if the current SpectraCyberConfig is Equal to another SpectraCyberConfig
        /// and it checks if the other SpectraCyberConfig is null
        /// </summary>
        public override bool Equals(object obj)
        {
            SpectraCyberConfig other = obj as SpectraCyberConfig; //avoid double casting

            if (ReferenceEquals(other, null))
            {
                return(false);
            }
            return(_Mode == other._Mode &&
                   IntegrationTime == other.IntegrationTime &&
                   OffsetVoltage == other.OffsetVoltage &&
                   IFGain == other.IFGain &&
                   DCGain == other.DCGain &&
                   Bandwidth == other.Bandwidth);
        }