Beispiel #1
0
 public bool Equals(TradeStore other)
 {
     if (ReferenceEquals(other, null))
     {
         return(false);
     }
     if (ReferenceEquals(other, this))
     {
         return(true);
     }
     if (TradeId != other.TradeId)
     {
         return(false);
     }
     if (!partyUuids_.Equals(other.partyUuids_))
     {
         return(false);
     }
     if (!ItemsOnOffer.Equals(other.ItemsOnOffer))
     {
         return(false);
     }
     if (!acceptedParties_.Equals(other.acceptedParties_))
     {
         return(false);
     }
     return(Equals(_unknownFields, other._unknownFields));
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (TradeId.Length != 0)
            {
                hash ^= TradeId.GetHashCode();
            }
            hash ^= partyUuids_.GetHashCode();
            hash ^= ItemsOnOffer.GetHashCode();
            hash ^= acceptedParties_.GetHashCode();
            return(hash);
        }