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

            if (Id.Length != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Ok != false)
            {
                hash ^= Ok.GetHashCode();
            }
            if (request_ != null)
            {
                hash ^= Request.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ok != false)
            {
                hash ^= Ok.GetHashCode();
            }
            if (request_ != null)
            {
                hash ^= Request.GetHashCode();
            }
            if (Output.Length != 0)
            {
                hash ^= Output.GetHashCode();
            }
            if (CountResult != 0)
            {
                hash ^= CountResult.GetHashCode();
            }
            if (TotalItems != 0)
            {
                hash ^= TotalItems.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
0
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                hashcode = (hashcode * 397) + Ok.GetHashCode();
                hashcode = (hashcode * 397) + TraceCount.GetHashCode();
            }
            return(hashcode);
        }
Ejemplo n.º 4
0
        public override int GetHashCode()
        {
            int hashCode = 493339093;

            hashCode = hashCode * -1521134295 + Ok.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <T> .Default.GetHashCode(Result);

            hashCode = hashCode * -1521134295 + ErrorCode.GetHashCode();
            hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description);

            hashCode = hashCode * -1521134295 + EqualityComparer <ResponseParameters> .Default.GetHashCode(Parameters);

            return(hashCode);
        }
        public override int GetHashCode()
        {
            int hashcode = 157;

            unchecked {
                if (__isset.error)
                {
                    hashcode = (hashcode * 397) + Error.GetHashCode();
                }
                if (__isset.ok)
                {
                    hashcode = (hashcode * 397) + Ok.GetHashCode();
                }
                if (__isset.oldItem)
                {
                    hashcode = (hashcode * 397) + OldItem.GetHashCode();
                }
            }
            return(hashcode);
        }
Ejemplo n.º 6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Ok != false)
            {
                hash ^= Ok.GetHashCode();
            }
            if (Code != 0)
            {
                hash ^= Code.GetHashCode();
            }
            if (MessageText.Length != 0)
            {
                hash ^= MessageText.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 7
0
 /// <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 (Class != null)
         {
             hashCode = hashCode * 59 + Class.GetHashCode();
         }
         if (Links != null)
         {
             hashCode = hashCode * 59 + Links.GetHashCode();
         }
         if (Id != null)
         {
             hashCode = hashCode * 59 + Id.GetHashCode();
         }
         if (Message != null)
         {
             hashCode = hashCode * 59 + Message.GetHashCode();
         }
         if (Ok != null)
         {
             hashCode = hashCode * 59 + Ok.GetHashCode();
         }
         if (Parameters != null)
         {
             hashCode = hashCode * 59 + Parameters.GetHashCode();
         }
         if (Submitter != null)
         {
             hashCode = hashCode * 59 + Submitter.GetHashCode();
         }
         return(hashCode);
     }
 }