Beispiel #1
0
 public override int GetHashCode()
 {
     unchecked
     {
         return((IsSuccess.GetHashCode() * 397) ^ (Errors != null ? Errors.GetHashCode() : 0));
     }
 }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Controller.Length != 0)
            {
                hash ^= Controller.GetHashCode();
            }
            if (Action.Length != 0)
            {
                hash ^= Action.GetHashCode();
            }
            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            if (Message.Length != 0)
            {
                hash ^= Message.GetHashCode();
            }
            if (data_ != null)
            {
                hash ^= Data.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Err != 0)
            {
                hash ^= Err.GetHashCode();
            }
            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            if (GateServerIp.Length != 0)
            {
                hash ^= GateServerIp.GetHashCode();
            }
            if (GateServerPort != 0)
            {
                hash ^= GateServerPort.GetHashCode();
            }
            if (UserId.Length != 0)
            {
                hash ^= UserId.GetHashCode();
            }
            if (UserAccount.Length != 0)
            {
                hash ^= UserAccount.GetHashCode();
            }
            if (Token.Length != 0)
            {
                hash ^= Token.GetHashCode();
            }
            return(hash);
        }
 //hash code trait
 public override int GetHashCode()
 {
     unchecked {
         var hash = 0;
         hash = hash * 31 + IsSuccess.GetHashCode();
         hash = hash * 31 + HasUpdated.GetHashCode();
         hash = hash * 31 + FormattedText.GetHashCode();
         return(hash);
     }
 }
Beispiel #5
0
 /// <summary>
 /// Returns a hash code for this instance.
 /// </summary>
 /// <returns>
 /// A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
 /// </returns>
 public override int GetHashCode()
 {
     unchecked
     {
         int result = IsSuccess.GetHashCode();
         result = (result * 397) ^ StartPosition;
         result = (result * 397) ^ EndPosition;
         return(result);
     }
 }
Beispiel #6
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (Message != null ? Message.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ IsFailure.GetHashCode();
         hashCode = (hashCode * 397) ^ IsSuccess.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)ResultCode;
         return(hashCode);
     }
 }
 /// <inheritdoc />
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = IsSuccess.GetHashCode();
         hashCode = (hashCode * 397) ^ (GroupId is null ? 0 : GroupId.GetHashCode());
         hashCode = (hashCode * 397) ^ (ErrorMessage is null ? 0 : ErrorMessage.GetHashCode());
         hashCode = (hashCode * 397) ^ (StatusMessage is null ? 0 : StatusMessage.GetHashCode());
         return(hashCode);
     }
 }
Beispiel #8
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = IsSuccess.GetHashCode();
         hashCode = (hashCode * 397) ^ (ErrorCode != null ? ErrorCode.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Value != null ? Value.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #9
0
        /// <summary>
        /// Return the hash code of this object.
        /// </summary>
        /// <returns>The hash code of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(IsSuccess.GetHashCode() * 5 ^
                       PatchedData.GetHashCode() * 3 ^

                       (ErrorResponse.IsNotNullOrEmpty()
                           ? ErrorResponse.GetHashCode()
                           : 0));
            }
        }
Beispiel #10
0
 public override int GetHashCode()
 {
     return(base.GetHashCode() ^
            IsSuccess.GetHashCode() ^
            State.GetHashCode() ^
            Manufacturer.GetHashCode() ^
            ModelName.GetHashCode() ^
            SerialNumber.GetHashCode() ^
            SignalQuality.GetHashCode() ^
            Imsi.GetHashCode() ^
            Imei.GetHashCode() ^
            OperatorName.GetHashCode());
 }
Beispiel #11
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            if (Timestamp != 0L)
            {
                hash ^= Timestamp.GetHashCode();
            }
            return(hash);
        }
Beispiel #12
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            if (Error.Length != 0)
            {
                hash ^= Error.GetHashCode();
            }
            return(hash);
        }
Beispiel #13
0
        /// <summary>
        /// Returns a hash code for the current object.
        /// Uses a combination of the public properties to calculate the hash.
        /// </summary>
        /// <returns>A hash code for the current object.</returns>
        public override int GetHashCode()
        {
            unchecked
            {
                var result = Value != null?Value.GetHashCode() : 0;

                result = (result * 397) ^ IsSuccess.GetHashCode();
                result = (result * 397) ^ ResultCode.GetHashCode();
                result = (result * 397) ^ NodeOffline.GetHashCode();
                result = (result * 397) ^ Done.GetHashCode();
                result = (result * 397) ^ Continuation.GetHashCode();
                return(result);
            }
        }
Beispiel #14
0
        /// <summary>
        /// Return the hash code of this object.
        /// </summary>
        /// <returns>The hash code of this object.</returns>
        public override Int32 GetHashCode()
        {
            unchecked
            {
                return(IsSuccess.GetHashCode() * 7 ^
                       Data.GetHashCode() * 5 ^

                       (WasCreated.HasValue
                           ? WasCreated.GetHashCode() * 3
                           : 0) ^

                       (ErrorResponse.IsNotNullOrEmpty()
                           ? ErrorResponse.GetHashCode()
                           : 0));
            }
        }
Beispiel #15
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            if (ResponseMsg.Length != 0)
            {
                hash ^= ResponseMsg.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #16
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            if (SingUpFailType != global::GamePacket.Proto.AccountFailType.AlDefault)
            {
                hash ^= SingUpFailType.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #17
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            if (Error.Length != 0)
            {
                hash ^= Error.GetHashCode();
            }
            if (ID != 0)
            {
                hash ^= ID.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #18
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (IsSuccess != false)
            {
                hash ^= IsSuccess.GetHashCode();
            }
            if (LoginFailType != global::GamePacket.Proto.AccountFailType.AlDefault)
            {
                hash ^= LoginFailType.GetHashCode();
            }
            if (UniqueId.Length != 0)
            {
                hash ^= UniqueId.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }