public bool Equals(ExchangeMeta other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(Volume.Equals(other.Volume) && Change.Equals(other.Change) && Markets == other.Markets && Name == other.Name && Id == other.Id); }
public bool Equals(Asset other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return(base.Equals(other) && Slug == other.Slug && Supply.Equals(other.Supply) && MarketCap.Equals(other.MarketCap) && Price.Equals(other.Price) && Volume.Equals(other.Volume) && Change.Equals(other.Change) && Change1Hour.Equals(other.Change1Hour) && Change1Week.Equals(other.Change1Week) && AllTimeHigh.Equals(other.AllTimeHigh) && AllTimeLow.Equals(other.AllTimeLow) && EarliestKnownPrice.Equals(other.EarliestKnownPrice) && EarliestTradeDate.Equals(other.EarliestTradeDate) && Equals(Logo, other.Logo)); }
public void Print() { if (Change.Equals(Edit.None)) { Console.WriteLine(Text); } else if (Change.Equals(Edit.Add)) { Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine($"+ {Text}"); Console.ResetColor(); } else { Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine($"- {Text}"); Console.ResetColor(); } }
protected bool Equals(OptionViewModel other) { return(string.Equals(OptionNumber, other.OptionNumber) && Bid.Equals(other.Bid) && BidVolume == other.BidVolume && Ask.Equals(other.Ask) && AskVolume == other.AskVolume && Volume == other.Volume && Bid2.Equals(other.Bid2) && BidVolume2 == other.BidVolume2 && Ask2.Equals(other.Ask2) && AskVolume2 == other.AskVolume2 && Bid3.Equals(other.Bid3) && BidVolume3 == other.BidVolume3 && Ask3.Equals(other.Ask3) && AskVolume3 == other.AskVolume3 && Bid4.Equals(other.Bid4) && BidVolume4 == other.BidVolume4 && Ask4.Equals(other.Ask4) && AskVolume4 == other.AskVolume4 && Bid5.Equals(other.Bid5) && BidVolume5 == other.BidVolume5 && Ask5.Equals(other.Ask5) && AskVolume5 == other.AskVolume5 && Equals(Greeks, other.Greeks) && OpenInterest == other.OpenInterest && Turnover.Equals(other.Turnover) && UncoveredPositionQuantity == other.UncoveredPositionQuantity && PreviousSettlementPrice.Equals(other.PreviousSettlementPrice) && OpeningPrice.Equals(other.OpeningPrice) && AuctionReferencePrice.Equals(other.AuctionReferencePrice) && AuctionReferenceQuantity == other.AuctionReferenceQuantity && HighestPrice.Equals(other.HighestPrice) && LowestPrice.Equals(other.LowestPrice) && LatestTradedPrice.Equals(other.LatestTradedPrice) && Change.Equals(other.Change) && ChangePercentage.Equals(other.ChangePercentage) && PreviousClose.Equals(other.PreviousClose) && string.Equals(Name, other.Name)); }
/// <inheritdoc /> public bool Equals(ControlValue other) => Change.Equals(other.Change) && Info.Equals(other.Info) && Equals(Value, other.Value);
public bool Equals(QueueItem other) { return(Change.Equals(other.Change, StringComparison.Ordinal) && EqualityComparer <IDispatchTarget> .Default.Equals(DispatchTarget, other.DispatchTarget)); }