/// <summary> /// Copy Constructor /// </summary> /// <param name="source"></param> public AntennaStatus ( AntennaStatus source ) : base() { this.Copy(source); }
/// <summary> /// check equal /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(System.Object obj) { if (null == obj) { return(false); } AntennaStatus rhs = obj as AntennaStatus; if (null == (System.Object)rhs) { return(false); } return(this.Equals(rhs)); }
/// <summary> /// check equal /// </summary> /// <param name="rhs"></param> /// <returns></returns> public bool Equals(AntennaStatus rhs) { if (null == (System.Object)rhs) { return(false); } return (this.port == rhs.port && this.antennaPortStatus.state == rhs.antennaPortStatus.state //#if CS468 && this.antennaPortStatus.enableLocalFreq == rhs.antennaPortStatus.enableLocalFreq && this.antennaPortStatus.enableLocalInv == rhs.antennaPortStatus.enableLocalInv && this.antennaPortStatus.enableLocalProfile == rhs.antennaPortStatus.enableLocalProfile && this.antennaPortStatus.freqChn == rhs.antennaPortStatus.freqChn && this.antennaPortStatus.inv_algo == rhs.antennaPortStatus.inv_algo && this.antennaPortStatus.profile == rhs.antennaPortStatus.profile && this.antennaPortStatus.startQ == rhs.antennaPortStatus.startQ //#endif && this.antennaPortStatus.antennaSenseValue == rhs.antennaPortStatus.antennaSenseValue); }
/// <summary> /// Copy from AntennaStatus /// </summary> /// <param name="from"></param> public void Copy(AntennaStatus from) { this.port = from.Port; this.antennaPortStatus.state = from.State; this.antennaPortStatus.antennaSenseValue = from.AntennaSenseValue; }