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

            if (TargetEmail.Length != 0)
            {
                hash ^= TargetEmail.GetHashCode();
            }
            if (TargetBattleTag.Length != 0)
            {
                hash ^= TargetBattleTag.GetHashCode();
            }
            if (InviterBattleTag.Length != 0)
            {
                hash ^= InviterBattleTag.GetHashCode();
            }
            if (InviterFullName.Length != 0)
            {
                hash ^= InviterFullName.GetHashCode();
            }
            if (InviteeDisplayName.Length != 0)
            {
                hash ^= InviteeDisplayName.GetHashCode();
            }
            hash ^= role_.GetHashCode();
            hash ^= previousRoleDeprecated_.GetHashCode();
            if (friendParams_ != null)
            {
                hash ^= FriendParams.GetHashCode();
            }
            return(hash);
        }
예제 #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasSenderId)
            {
                hash ^= SenderId.GetHashCode();
            }
            if (HasTargetId)
            {
                hash ^= TargetId.GetHashCode();
            }
            if (HasType)
            {
                hash ^= Type.GetHashCode();
            }
            hash ^= attribute_.GetHashCode();
            if (HasSenderAccountId)
            {
                hash ^= SenderAccountId.GetHashCode();
            }
            if (HasTargetAccountId)
            {
                hash ^= TargetAccountId.GetHashCode();
            }
            if (HasSenderBattleTag)
            {
                hash ^= SenderBattleTag.GetHashCode();
            }
            if (HasTargetBattleTag)
            {
                hash ^= TargetBattleTag.GetHashCode();
            }
            if (HasPeer)
            {
                hash ^= Peer.GetHashCode();
            }
            if (HasForwardingIdentity)
            {
                hash ^= ForwardingIdentity.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
예제 #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (senderId_ != null)
            {
                hash ^= SenderId.GetHashCode();
            }
            if (targetId_ != null)
            {
                hash ^= TargetId.GetHashCode();
            }
            if (Type.Length != 0)
            {
                hash ^= Type.GetHashCode();
            }
            hash ^= attribute_.GetHashCode();
            if (senderAccountId_ != null)
            {
                hash ^= SenderAccountId.GetHashCode();
            }
            if (targetAccountId_ != null)
            {
                hash ^= TargetAccountId.GetHashCode();
            }
            if (SenderBattleTag.Length != 0)
            {
                hash ^= SenderBattleTag.GetHashCode();
            }
            if (TargetBattleTag.Length != 0)
            {
                hash ^= TargetBattleTag.GetHashCode();
            }
            if (peer_ != null)
            {
                hash ^= Peer.GetHashCode();
            }
            if (forwardingIdentity_ != null)
            {
                hash ^= ForwardingIdentity.GetHashCode();
            }
            return(hash);
        }