Beispiel #1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (FailureReason != 0)
            {
                hash ^= FailureReason.GetHashCode();
            }
            if (FailureMessage.Length != 0)
            {
                hash ^= FailureMessage.GetHashCode();
            }
            if (SessionId.Length != 0)
            {
                hash ^= SessionId.GetHashCode();
            }
            if (expiry_ != null)
            {
                hash ^= Expiry.GetHashCode();
            }
            if (ExpiresIn != 0)
            {
                hash ^= ExpiresIn.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (TradeId.Length != 0)
            {
                hash ^= TradeId.GetHashCode();
            }
            if (Token.Length != 0)
            {
                hash ^= Token.GetHashCode();
            }
            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (FailureReason != 0)
            {
                hash ^= FailureReason.GetHashCode();
            }
            if (FailureMessage.Length != 0)
            {
                hash ^= FailureMessage.GetHashCode();
            }
            hash ^= items_.GetHashCode();
            return(hash);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (TradeId.Length != 0)
            {
                hash ^= TradeId.GetHashCode();
            }
            if (OtherPartyUuid.Length != 0)
            {
                hash ^= OtherPartyUuid.GetHashCode();
            }
            if (FailureReason != 0)
            {
                hash ^= FailureReason.GetHashCode();
            }
            if (FailureMessage.Length != 0)
            {
                hash ^= FailureMessage.GetHashCode();
            }
            return(hash);
        }
Beispiel #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (TradeId.Length != 0)
            {
                hash ^= TradeId.GetHashCode();
            }
            if (OtherPartyUuid.Length != 0)
            {
                hash ^= OtherPartyUuid.GetHashCode();
            }
            if (FailureReason != global::Trading.TradeFailureReason.SessionId)
            {
                hash ^= FailureReason.GetHashCode();
            }
            if (FailureMessage.Length != 0)
            {
                hash ^= FailureMessage.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (Uuid.Length != 0)
            {
                hash ^= Uuid.GetHashCode();
            }
            if (DisplayName.Length != 0)
            {
                hash ^= DisplayName.GetHashCode();
            }
            if (FailureReason != global::UserManagement.LoginFailureReason.SessionId)
            {
                hash ^= FailureReason.GetHashCode();
            }
            if (FailureMessage.Length != 0)
            {
                hash ^= FailureMessage.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Success != false)
            {
                hash ^= Success.GetHashCode();
            }
            if (FailureReason != global::Authentication.AuthFailureReason.AuthType)
            {
                hash ^= FailureReason.GetHashCode();
            }
            if (FailureMessage.Length != 0)
            {
                hash ^= FailureMessage.GetHashCode();
            }
            if (SessionId.Length != 0)
            {
                hash ^= SessionId.GetHashCode();
            }
            if (expiry_ != null)
            {
                hash ^= Expiry.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ResourceName.Length != 0)
            {
                hash ^= ResourceName.GetHashCode();
            }
            if (HasId)
            {
                hash ^= Id.GetHashCode();
            }
            if (HasExternalId)
            {
                hash ^= ExternalId.GetHashCode();
            }
            if (Type != global::Google.Ads.GoogleAds.V10.Enums.OfflineUserDataJobTypeEnum.Types.OfflineUserDataJobType.Unspecified)
            {
                hash ^= Type.GetHashCode();
            }
            if (Status != global::Google.Ads.GoogleAds.V10.Enums.OfflineUserDataJobStatusEnum.Types.OfflineUserDataJobStatus.Unspecified)
            {
                hash ^= Status.GetHashCode();
            }
            if (FailureReason != global::Google.Ads.GoogleAds.V10.Enums.OfflineUserDataJobFailureReasonEnum.Types.OfflineUserDataJobFailureReason.Unspecified)
            {
                hash ^= FailureReason.GetHashCode();
            }
            if (operationMetadata_ != null)
            {
                hash ^= OperationMetadata.GetHashCode();
            }
            if (metadataCase_ == MetadataOneofCase.CustomerMatchUserListMetadata)
            {
                hash ^= CustomerMatchUserListMetadata.GetHashCode();
            }
            if (metadataCase_ == MetadataOneofCase.StoreSalesMetadata)
            {
                hash ^= StoreSalesMetadata.GetHashCode();
            }
            hash ^= (int)metadataCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        /// <summary>
        /// Gets the hash code
        /// </summary>
        /// <returns>Hash code</returns>
        public override int GetHashCode()
        {
            unchecked // Overflow is fine, just wrap
            {
                int hashCode = 41;
                if (MerchantSuppliedId != null)
                {
                    hashCode = hashCode * 59 + MerchantSuppliedId.GetHashCode();
                }

                hashCode = hashCode * 59 + OrderStatus.GetHashCode();
                if (FailureReason != null)
                {
                    hashCode = hashCode * 59 + FailureReason.GetHashCode();
                }
                if (PrepTime != null)
                {
                    hashCode = hashCode * 59 + PrepTime.GetHashCode();
                }
                return(hashCode);
            }
        }