protected bool Equals(Ticker other) => Equals(TradePair, other.TradePair) && Hight.Equals(other.Hight) && Low.Equals(other.Low) && Avg.Equals(other.Avg) && Volume.Equals(other.Volume) && CurrentVolume.Equals(other.CurrentVolume) && Last.Equals(other.Last) && Buy.Equals(other.Buy) && Sell.Equals(other.Sell);
/// <summary> /// Returns true if Item instances are equal /// </summary> /// <param name="other">Instance of Item to be compared</param> /// <returns>Boolean</returns> public bool Equals(Item other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Id == other.Id || Id != null && Id.Equals(other.Id) ) && ( ItemId == other.ItemId || ItemId != null && ItemId.Equals(other.ItemId) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Price == other.Price || Price != null && Price.Equals(other.Price) ) && ( Buy == other.Buy || Buy != null && Buy.Equals(other.Buy) ) && ( Sell == other.Sell || Sell != null && Sell.Equals(other.Sell) )); }
/// <summary> /// Returns true if Category instances are equal /// </summary> /// <param name="other">Instance of Category to be compared</param> /// <returns>Boolean</returns> public bool Equals(Category other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( CategoryId == other.CategoryId || CategoryId != null && CategoryId.Equals(other.CategoryId) ) && ( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Info == other.Info || Info != null && Info.Equals(other.Info) ) && ( CategoryItems == other.CategoryItems || CategoryItems != null && CategoryItems.SequenceEqual(other.CategoryItems) ) && ( Buy == other.Buy || Buy != null && Buy.Equals(other.Buy) ) && ( Sell == other.Sell || Sell != null && Sell.Equals(other.Sell) )); }
/// <summary> /// Returns true if PriceData instances are equal /// </summary> /// <param name="other">Instance of PriceData to be compared</param> /// <returns>Boolean</returns> public bool Equals(PriceData other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Buy == other.Buy || Buy != null && Buy.Equals(other.Buy) ) && ( Sell == other.Sell || Sell != null && Sell.Equals(other.Sell) )); }