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

            if (HasTargetId)
            {
                hash ^= TargetId.GetHashCode();
            }
            if (HasType)
            {
                hash ^= Type.GetHashCode();
            }
            if (HasSource)
            {
                hash ^= Source.GetHashCode();
            }
            if (HasItem)
            {
                hash ^= Item.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Beispiel #2
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = (CanonicalName != null ? CanonicalName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (TargetId != null ? TargetId.GetHashCode() : 0);
         return(hashCode);
     }
 }
        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);
        }
Beispiel #4
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (from_ != null)
            {
                hash ^= From.GetHashCode();
            }
            if (TargetId.Length != 0)
            {
                hash ^= TargetId.GetHashCode();
            }
            if (Timestamp != 0L)
            {
                hash ^= Timestamp.GetHashCode();
            }
            return(hash);
        }
        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);
        }
Beispiel #6
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (HasTargetId)
            {
                hash ^= TargetId.GetHashCode();
            }
            hash ^= attribute_.GetHashCode();
            if (HasReason)
            {
                hash ^= Reason.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Topic.Length != 0)
            {
                hash ^= Topic.GetHashCode();
            }
            if (SenderId.Length != 0)
            {
                hash ^= SenderId.GetHashCode();
            }
            if (TargetId.Length != 0)
            {
                hash ^= TargetId.GetHashCode();
            }
            hash ^= data_.GetHashCode();
            return(hash);
        }
Beispiel #8
0
 public override int GetHashCode()
 {
     return((SourceId.GetHashCode() + TargetId.GetHashCode()) / 2);
 }
Beispiel #9
0
 public override int GetHashCode()
 {
     return(Reason.GetHashCode() * (!string.IsNullOrEmpty(PlayerId) ? PlayerId.GetHashCode() : 10) * (!string.IsNullOrEmpty(TargetId) ? TargetId.GetHashCode() : 11)
            * (!string.IsNullOrEmpty(SkillName) ? SkillName.GetHashCode() : 12) * (!string.IsNullOrEmpty(EventName) ? EventName.GetHashCode() : 13));
 }