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

            if (UserID.Length != 0)
            {
                hash ^= UserID.GetHashCode();
            }
            if (NickName.Length != 0)
            {
                hash ^= NickName.GetHashCode();
            }
            if (Signature.Length != 0)
            {
                hash ^= Signature.GetHashCode();
            }
            if (HeadImageUrl.Length != 0)
            {
                hash ^= HeadImageUrl.GetHashCode();
            }
            if (CreateTime != 0L)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (PlayerId != 0L)
            {
                hash ^= PlayerId.GetHashCode();
            }
            if (NickName.Length != 0)
            {
                hash ^= NickName.GetHashCode();
            }
            if (Avatar.Length != 0)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (Coin != 0L)
            {
                hash ^= Coin.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Account.Length != 0)
            {
                hash ^= Account.GetHashCode();
            }
            if (NickName.Length != 0)
            {
                hash ^= NickName.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (Coin != 0)
            {
                hash ^= Coin.GetHashCode();
            }
            if (PortraitURL.Length != 0)
            {
                hash ^= PortraitURL.GetHashCode();
            }
            return(hash);
        }
Beispiel #4
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 (NickName != null)
         {
             hashCode = hashCode * 59 + NickName.GetHashCode();
         }
         if (Lat != null)
         {
             hashCode = hashCode * 59 + Lat.GetHashCode();
         }
         if (Lon != null)
         {
             hashCode = hashCode * 59 + Lon.GetHashCode();
         }
         if (LastSeen != null)
         {
             hashCode = hashCode * 59 + LastSeen.GetHashCode();
         }
         return(hashCode);
     }
 }
Beispiel #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (UserID.Length != 0)
            {
                hash ^= UserID.GetHashCode();
            }
            if (Password.Length != 0)
            {
                hash ^= Password.GetHashCode();
            }
            if (NickName.Length != 0)
            {
                hash ^= NickName.GetHashCode();
            }
            if (Signature.Length != 0)
            {
                hash ^= Signature.GetHashCode();
            }
            if (HeadImageData.Length != 0)
            {
                hash ^= HeadImageData.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #6
0
        public override int GetHashCode()
        {
            int hash = 17;

            hash = hash * 23 + NickName.GetHashCode();
            hash = hash * 23 + UserName.GetHashCode();
            return(hash);
        }
Beispiel #7
0
 public override int GetHashCode()
 {
     unchecked
     {
         return(((NickName != null ? NickName.GetHashCode() : 0) * 397) ^
                (SubName != null ? SubName.GetHashCode() : 0));
     }
 }
Beispiel #8
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (NickName != null ? NickName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Email != null ? Email.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (IsReady != null ? IsReady.GetHashCode() : 0);
         return(hashCode);
     }
 }
Beispiel #9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (NickName.Length != 0)
            {
                hash ^= NickName.GetHashCode();
            }
            if (AvatarUrl.Length != 0)
            {
                hash ^= AvatarUrl.GetHashCode();
            }
            if (ApiLevel.Length != 0)
            {
                hash ^= ApiLevel.GetHashCode();
            }
            if (HkQotRight != 0)
            {
                hash ^= HkQotRight.GetHashCode();
            }
            if (UsQotRight != 0)
            {
                hash ^= UsQotRight.GetHashCode();
            }
            if (CnQotRight != 0)
            {
                hash ^= CnQotRight.GetHashCode();
            }
            if (IsNeedAgreeDisclaimer != false)
            {
                hash ^= IsNeedAgreeDisclaimer.GetHashCode();
            }
            if (UserID != 0L)
            {
                hash ^= UserID.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
 public override int GetHashCode()
 {
     return(NickName.GetHashCode());
 }