Ejemplo n.º 1
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = GetType().GetHashCode();
                hash = (hash * 31) ^ SenderId.GetHashCode();
                hash = (hash * 31) ^ ReceiverId.GetHashCode();

                return(hash);
            }
        }
                public override int GetHashCode()
                {
                    int hash = 1;

                    if (ReceiverId.Length != 0)
                    {
                        hash ^= ReceiverId.GetHashCode();
                    }
                    if (TechnicalMessageType.Length != 0)
                    {
                        hash ^= TechnicalMessageType.GetHashCode();
                    }
                    if (TeamSetContextId.Length != 0)
                    {
                        hash ^= TeamSetContextId.GetHashCode();
                    }
                    if (chunkContext_ != null)
                    {
                        hash ^= ChunkContext.GetHashCode();
                    }
                    if (PayloadSize != 0L)
                    {
                        hash ^= PayloadSize.GetHashCode();
                    }
                    if (sentTimestamp_ != null)
                    {
                        hash ^= SentTimestamp.GetHashCode();
                    }
                    if (SequenceNumber != 0L)
                    {
                        hash ^= SequenceNumber.GetHashCode();
                    }
                    if (SenderId.Length != 0)
                    {
                        hash ^= SenderId.GetHashCode();
                    }
                    if (createdAt_ != null)
                    {
                        hash ^= CreatedAt.GetHashCode();
                    }
                    if (MessageId.Length != 0)
                    {
                        hash ^= MessageId.GetHashCode();
                    }
                    if (metadata_ != null)
                    {
                        hash ^= Metadata.GetHashCode();
                    }
                    if (_unknownFields != null)
                    {
                        hash ^= _unknownFields.GetHashCode();
                    }
                    return(hash);
                }
Ejemplo n.º 3
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);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (ConfirmationId != 0L)
            {
                hash ^= ConfirmationId.GetHashCode();
            }
            if (SenderId.Length != 0)
            {
                hash ^= SenderId.GetHashCode();
            }
            if (msg_ != null)
            {
                hash ^= Msg.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 5
0
    public override int GetHashCode()
    {
        int hash = 1;

        if (SenderId != 0UL)
        {
            hash ^= SenderId.GetHashCode();
        }
        hash ^= receiverId_.GetHashCode();
        if (MessageData.Length != 0)
        {
            hash ^= MessageData.GetHashCode();
        }
        if (IsBoard != false)
        {
            hash ^= IsBoard.GetHashCode();
        }
        return(hash);
    }
Ejemplo n.º 6
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);
        }
Ejemplo n.º 7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Id != 0)
            {
                hash ^= Id.GetHashCode();
            }
            if (Title.Length != 0)
            {
                hash ^= Title.GetHashCode();
            }
            if (Content.Length != 0)
            {
                hash ^= Content.GetHashCode();
            }
            hash ^= awards_.GetHashCode();
            if (SenderId != 0)
            {
                hash ^= SenderId.GetHashCode();
            }
            if (Sender.Length != 0)
            {
                hash ^= Sender.GetHashCode();
            }
            if (CreateTime != 0L)
            {
                hash ^= CreateTime.GetHashCode();
            }
            if (OutDateTime != 0L)
            {
                hash ^= OutDateTime.GetHashCode();
            }
            if (HasAttachment != 0)
            {
                hash ^= HasAttachment.GetHashCode();
            }
            if (MailStatus != 0)
            {
                hash ^= MailStatus.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 8
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (GiftboxId != 0UL)
            {
                hash ^= GiftboxId.GetHashCode();
            }
            if (SenderId.Length != 0)
            {
                hash ^= SenderId.GetHashCode();
            }
            if (ReceiverId.Length != 0)
            {
                hash ^= ReceiverId.GetHashCode();
            }
            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (FortLat != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FortLat);
            }
            if (FortLng != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FortLng);
            }
            if (CreationTimestamp != 0L)
            {
                hash ^= CreationTimestamp.GetHashCode();
            }
            if (SentTimestamp != 0L)
            {
                hash ^= SentTimestamp.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 9
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (ReceiverId.Length != 0)
            {
                hash ^= ReceiverId.GetHashCode();
            }
            if (SenderId.Length != 0)
            {
                hash ^= SenderId.GetHashCode();
            }
            if (Text.Length != 0)
            {
                hash ^= Text.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 10
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (GiftboxId != 0UL)
            {
                hash ^= GiftboxId.GetHashCode();
            }
            if (SenderId.Length != 0)
            {
                hash ^= SenderId.GetHashCode();
            }
            if (SenderCodename.Length != 0)
            {
                hash ^= SenderCodename.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 11
0
        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);
        }
Ejemplo n.º 12
0
 public override int GetHashCode()
 {
     return(SenderId.GetHashCode() + SenderCounter.GetHashCode());
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (GiftboxId != 0UL)
            {
                hash ^= GiftboxId.GetHashCode();
            }
            if (SenderId.Length != 0)
            {
                hash ^= SenderId.GetHashCode();
            }
            if (SenderCodename.Length != 0)
            {
                hash ^= SenderCodename.GetHashCode();
            }
            if (ReceiverId.Length != 0)
            {
                hash ^= ReceiverId.GetHashCode();
            }
            if (ReceiverCodename.Length != 0)
            {
                hash ^= ReceiverCodename.GetHashCode();
            }
            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (FortName.Length != 0)
            {
                hash ^= FortName.GetHashCode();
            }
            if (FortLat != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FortLat);
            }
            if (FortLng != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(FortLng);
            }
            if (FortImageUrl.Length != 0)
            {
                hash ^= FortImageUrl.GetHashCode();
            }
            if (CreationTimestamp != 0L)
            {
                hash ^= CreationTimestamp.GetHashCode();
            }
            if (SentTimestamp != 0L)
            {
                hash ^= SentTimestamp.GetHashCode();
            }
            if (DeliveryPokemonId != 0UL)
            {
                hash ^= DeliveryPokemonId.GetHashCode();
            }
            if (IsSponsored != false)
            {
                hash ^= IsSponsored.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }