/// <summary> /// Returns true if SimpleFixedPriceTradeInfo instances are equal /// </summary> /// <param name="other">Instance of SimpleFixedPriceTradeInfo to be compared</param> /// <returns>Boolean</returns> public bool Equals(SimpleFixedPriceTradeInfo other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( InputAddress == other.InputAddress || InputAddress != null && InputAddress.Equals(other.InputAddress) ) && ( InputCoinType == other.InputCoinType || InputCoinType != null && InputCoinType.Equals(other.InputCoinType) ) && ( InputAmount == other.InputAmount || InputAmount != null && InputAmount.Equals(other.InputAmount) ) && ( OutputAddress == other.OutputAddress || OutputAddress != null && OutputAddress.Equals(other.OutputAddress) ) && ( OutputCoinType == other.OutputCoinType || OutputCoinType != null && OutputCoinType.Equals(other.OutputCoinType) ) && ( OutputAmount == other.OutputAmount || OutputAmount != null && OutputAmount.Equals(other.OutputAmount) ) && ( RefundAddress == other.RefundAddress || RefundAddress != null && RefundAddress.Equals(other.RefundAddress) ) && ( ExpirationTime == other.ExpirationTime || ExpirationTime != null && ExpirationTime.Equals(other.ExpirationTime) ) && ( FlatTransactionFeeInInputCoinType == other.FlatTransactionFeeInInputCoinType || FlatTransactionFeeInInputCoinType != null && FlatTransactionFeeInInputCoinType.Equals(other.FlatTransactionFeeInInputCoinType) )); }
/// <inheritdoc/> public bool Equals(RestApiModel other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (Id == other.Id && Type == other.Type && Parent == other.Parent && Author == other.Author && Title == other.Title && Text == other.Text && Url == other.Url && HtmlContent == other.HtmlContent && Upvotes == other.Upvotes && Downvotes == other.Downvotes && MathF.Abs(VotesRatio - other.VotesRatio) < 0.001f && Views == other.Views && Clicks == other.Clicks && MathF.Abs(ClicksRatio - other.ClicksRatio) < 0.001f && NumberOfComments == other.NumberOfComments && CreationTime.Equals(other.CreationTime) && UpdateTime.Equals(other.UpdateTime) && ExpirationTime.Equals(other.ExpirationTime) && Flag1 == other.Flag1 && Flag2 == other.Flag2 && Flag3 == other.Flag3 && Flag4 == other.Flag4 && Flag5 == other.Flag5 && Optional1 == other.Optional1 && Optional2 == other.Optional2 && Optional3 == other.Optional3 && (Info == null && other.Info == null || Info?.Equals(other.Info) == true)); }
public bool Equals(JsonResponseModel?other) { if (other is null) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (Id == other.Id && Type == other.Type && Count == other.Count && CreationTime.Equals(other.CreationTime) && UpdateTime.Equals(other.UpdateTime) && ExpirationTime.Equals(other.ExpirationTime) && PreviousPageId == other.PreviousPageId && FollowingPageId == other.FollowingPageId && ModelContainers?.Count == other.ModelContainers?.Count && ModelContainers.Zip(other.ModelContainers).All(p => p.First.Equals(p.Second))); }