/// <summary> /// Copy from AntennaConfig /// </summary> /// <param name="from"></param> public void Copy(AntennaConfig from) { this.port = from.port; this.antennaPortConfig.powerLevel = from.antennaPortConfig.powerLevel; this.antennaPortConfig.dwellTime = from.antennaPortConfig.dwellTime; this.antennaPortConfig.numberInventoryCycles = from.antennaPortConfig.numberInventoryCycles; this.antennaPortConfig.antennaSenseThreshold = from.antennaPortConfig.antennaSenseThreshold; }
/// <summary> /// Copy Constructor /// </summary> /// <param name="source"></param> public AntennaConfig ( AntennaConfig source ) : base() { this.Copy(source); }
/// <summary> /// Check equal /// </summary> /// <param name="rhs"></param> /// <returns></returns> public bool Equals(AntennaConfig rhs) { if (null == (System.Object)rhs) { return(false); } return (this.port == rhs.port && this.antennaPortConfig.powerLevel == rhs.antennaPortConfig.powerLevel && this.antennaPortConfig.dwellTime == rhs.antennaPortConfig.dwellTime && this.antennaPortConfig.numberInventoryCycles == rhs.antennaPortConfig.numberInventoryCycles && this.antennaPortConfig.antennaSenseThreshold == rhs.antennaPortConfig.antennaSenseThreshold); }
/// <summary> /// Check equal /// </summary> /// <param name="obj"></param> /// <returns></returns> public override bool Equals(System.Object obj) { if (null == obj) { return(false); } AntennaConfig rhs = obj as AntennaConfig; if (null == (System.Object)rhs) { return(false); } return(this.Equals(rhs)); }