Exemple #1
0
        public override int GetHashCode()
        {
            int hashCode = -746518720;

            if (AccessToken != null)
            {
                hashCode += AccessToken.GetHashCode();
            }

            if (TokenType != null)
            {
                hashCode += TokenType.GetHashCode();
            }

            if (ExpiresIn != null)
            {
                hashCode += ExpiresIn.GetHashCode();
            }

            if (Scope != null)
            {
                hashCode += Scope.GetHashCode();
            }

            if (Expiry != null)
            {
                hashCode += Expiry.GetHashCode();
            }

            return(hashCode);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Method != global::Spotify.Login5.V3.Challenges.CodeChallenge.Types.Method.Unknown)
            {
                hash ^= Method.GetHashCode();
            }
            if (CodeLength != 0)
            {
                hash ^= CodeLength.GetHashCode();
            }
            if (ExpiresIn != 0)
            {
                hash ^= ExpiresIn.GetHashCode();
            }
            if (CanonicalPhoneNumber.Length != 0)
            {
                hash ^= CanonicalPhoneNumber.GetHashCode();
            }
            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
     {
         var hashCode = 41;
         // Suitable nullity checks etc, of course :)
         if (ConversationId != null)
         {
             hashCode = hashCode * 59 + ConversationId.GetHashCode();
         }
         if (Token != null)
         {
             hashCode = hashCode * 59 + Token.GetHashCode();
         }
         if (ExpiresIn != null)
         {
             hashCode = hashCode * 59 + ExpiresIn.GetHashCode();
         }
         if (StreamUrl != null)
         {
             hashCode = hashCode * 59 + StreamUrl.GetHashCode();
         }
         if (ReferenceGrammarId != null)
         {
             hashCode = hashCode * 59 + ReferenceGrammarId.GetHashCode();
         }
         if (ETag != null)
         {
             hashCode = hashCode * 59 + ETag.GetHashCode();
         }
         return(hashCode);
     }
 }