コード例 #1
0
        public override int GetHashCode()
        {
            unchecked
            {
                int hash = GetType().GetHashCode();
                hash = (hash * 31) ^ SenderId.GetHashCode();
                hash = (hash * 31) ^ ReceiverId.GetHashCode();

                return(hash);
            }
        }
コード例 #2
0
                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);
                }
コード例 #3
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);
        }
コード例 #4
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);
        }
コード例 #5
0
ファイル: GnssPntResult.cs プロジェクト: zakirIndia/simulator
        public override int GetHashCode()
        {
            int hash = 1;

            if (ReceiverId != 0)
            {
                hash ^= ReceiverId.GetHashCode();
            }
            if (TimeType != 0)
            {
                hash ^= TimeType.GetHashCode();
            }
            if (GnssWeek != 0)
            {
                hash ^= GnssWeek.GetHashCode();
            }
            if (GnssSecondS != 0D)
            {
                hash ^= GnssSecondS.GetHashCode();
            }
            if (PntType != 0)
            {
                hash ^= PntType.GetHashCode();
            }
            if (PosXM != 0D)
            {
                hash ^= PosXM.GetHashCode();
            }
            if (PosYM != 0D)
            {
                hash ^= PosYM.GetHashCode();
            }
            if (PosZM != 0D)
            {
                hash ^= PosZM.GetHashCode();
            }
            if (StdPosXM != 0D)
            {
                hash ^= StdPosXM.GetHashCode();
            }
            if (StdPosYM != 0D)
            {
                hash ^= StdPosYM.GetHashCode();
            }
            if (StdPosZM != 0D)
            {
                hash ^= StdPosZM.GetHashCode();
            }
            if (VelXM != 0D)
            {
                hash ^= VelXM.GetHashCode();
            }
            if (VelYM != 0D)
            {
                hash ^= VelYM.GetHashCode();
            }
            if (VelZM != 0D)
            {
                hash ^= VelZM.GetHashCode();
            }
            if (StdVelXM != 0D)
            {
                hash ^= StdVelXM.GetHashCode();
            }
            if (StdVelYM != 0D)
            {
                hash ^= StdVelYM.GetHashCode();
            }
            if (StdVelZM != 0D)
            {
                hash ^= StdVelZM.GetHashCode();
            }
            if (SovledSatNum != 0)
            {
                hash ^= SovledSatNum.GetHashCode();
            }
            hash ^= satDirCosine_.GetHashCode();
            if (Pdop != 0D)
            {
                hash ^= Pdop.GetHashCode();
            }
            if (Hdop != 0D)
            {
                hash ^= Hdop.GetHashCode();
            }
            if (Vdop != 0D)
            {
                hash ^= Vdop.GetHashCode();
            }
            return(hash);
        }
コード例 #6
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 (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);
        }