Exemplo n.º 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Complete != false)
            {
                hash ^= Complete.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (LoginToken.Length != 0)
            {
                hash ^= LoginToken.GetHashCode();
            }
            if (DeploymentName.Length != 0)
            {
                hash ^= DeploymentName.GetHashCode();
            }
            if (Error.Length != 0)
            {
                hash ^= Error.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (LoginToken.Length != 0)
            {
                hash ^= LoginToken.GetHashCode();
            }
            if (DeploymentName.Length != 0)
            {
                hash ^= DeploymentName.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 3
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (PlayerId.Length != 0)
        {
            hash ^= PlayerId.GetHashCode();
        }
        if (DisplayName.Length != 0)
        {
            hash ^= DisplayName.GetHashCode();
        }
        if (PlayerIdHash != 0)
        {
            hash ^= PlayerIdHash.GetHashCode();
        }
        if (ShortPlayerId.Length != 0)
        {
            hash ^= ShortPlayerId.GetHashCode();
        }
        if (FirebaseUid.Length != 0)
        {
            hash ^= FirebaseUid.GetHashCode();
        }
        if (Email.Length != 0)
        {
            hash ^= Email.GetHashCode();
        }
        if (LoginToken.Length != 0)
        {
            hash ^= LoginToken.GetHashCode();
        }
        if (StartPlaying.Length != 0)
        {
            hash ^= StartPlaying.GetHashCode();
        }
        if (LastUpdated.Length != 0)
        {
            hash ^= LastUpdated.GetHashCode();
        }
        hash ^= repeatedInner_.GetHashCode();
        return(hash);
    }
Exemplo n.º 4
0
 /// <summary>
 /// Returns the hashcode of this Object
 /// </summary>
 /// <returns>Hash code (int)</returns>
 public override int GetHashCode()
 {
     // Credit: http://stackoverflow.com/a/263416/677735
     unchecked             // Overflow is fine, just wrap
     {
         int hash = 41;
         // Suitable nullity checks etc, of course :)
         if (Id != null)
         {
             hash = hash * 59 + Id.GetHashCode();
         }
         if (LogMessageTypeId != null)
         {
             hash = hash * 59 + LogMessageTypeId.GetHashCode();
         }
         if (ApplicationName != null)
         {
             hash = hash * 59 + ApplicationName.GetHashCode();
         }
         if (ApplicationMethod != null)
         {
             hash = hash * 59 + ApplicationMethod.GetHashCode();
         }
         if (IpAddress != null)
         {
             hash = hash * 59 + IpAddress.GetHashCode();
         }
         if (LoginToken != null)
         {
             hash = hash * 59 + LoginToken.GetHashCode();
         }
         if (ShortMessage != null)
         {
             hash = hash * 59 + ShortMessage.GetHashCode();
         }
         if (RequestHttpMethod != null)
         {
             hash = hash * 59 + RequestHttpMethod.GetHashCode();
         }
         if (RequestUri != null)
         {
             hash = hash * 59 + RequestUri.GetHashCode();
         }
         if (RequestParams != null)
         {
             hash = hash * 59 + RequestParams.GetHashCode();
         }
         if (RequestBody != null)
         {
             hash = hash * 59 + RequestBody.GetHashCode();
         }
         if (StatusCode != null)
         {
             hash = hash * 59 + StatusCode.GetHashCode();
         }
         if (ResponseContent != null)
         {
             hash = hash * 59 + ResponseContent.GetHashCode();
         }
         if (FullMessage != null)
         {
             hash = hash * 59 + FullMessage.GetHashCode();
         }
         if (Exception != null)
         {
             hash = hash * 59 + Exception.GetHashCode();
         }
         if (Trace != null)
         {
             hash = hash * 59 + Trace.GetHashCode();
         }
         if (Logged != null)
         {
             hash = hash * 59 + Logged.GetHashCode();
         }
         return(hash);
     }
 }