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

            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Level != 0)
            {
                hash ^= Level.GetHashCode();
            }
            if (avatar_ != null)
            {
                hash ^= Avatar.GetHashCode();
            }
            if (TeamColor != 0)
            {
                hash ^= TeamColor.GetHashCode();
            }
            if (BattlesWon != 0)
            {
                hash ^= BattlesWon.GetHashCode();
            }
            if (KmWalked != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(KmWalked);
            }
            if (CaughtPokemon != 0)
            {
                hash ^= CaughtPokemon.GetHashCode();
            }
            if (GymBadgeType != 0)
            {
                hash ^= GymBadgeType.GetHashCode();
            }
            hash ^= badges_.GetHashCode();
            if (Experience != 0L)
            {
                hash ^= Experience.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (GymBadgeType != 0)
            {
                hash ^= GymBadgeType.GetHashCode();
            }
            if (Score != 0)
            {
                hash ^= Score.GetHashCode();
            }
            if (gymBadgeStats_ != null)
            {
                hash ^= GymBadgeStats.GetHashCode();
            }
            if (LastUpdateTimestampMs != 0UL)
            {
                hash ^= LastUpdateTimestampMs.GetHashCode();
            }
            if (LastCheckTimestampMs != 0UL)
            {
                hash ^= LastCheckTimestampMs.GetHashCode();
            }
            if (EarnedPoints != 0)
            {
                hash ^= EarnedPoints.GetHashCode();
            }
            if (Progress != 0F)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseSingleEqualityComparer.GetHashCode(Progress);
            }
            if (LevelUp != false)
            {
                hash ^= LevelUp.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ImageUrl.Length != 0)
            {
                hash ^= ImageUrl.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude);
            }
            if (Longitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude);
            }
            if (raids_ != null)
            {
                hash ^= Raids.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #3
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (GymBadgeType != 0)
            {
                hash ^= GymBadgeType.GetHashCode();
            }
            if (Score != 0)
            {
                hash ^= Score.GetHashCode();
            }
            if (gymBadgeStats_ != null)
            {
                hash ^= GymBadgeStats.GetHashCode();
            }
            if (LastUpdateTimestampMs != 0UL)
            {
                hash ^= LastUpdateTimestampMs.GetHashCode();
            }
            if (LastCheckTimestampMs != 0UL)
            {
                hash ^= LastCheckTimestampMs.GetHashCode();
            }
            if (EarnedPoints != 0)
            {
                hash ^= EarnedPoints.GetHashCode();
            }
            if (Progress != 0F)
            {
                hash ^= Progress.GetHashCode();
            }
            if (LevelUp != false)
            {
                hash ^= LevelUp.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (ImageUrl.Length != 0)
            {
                hash ^= ImageUrl.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= Latitude.GetHashCode();
            }
            if (Longitude != 0D)
            {
                hash ^= Longitude.GetHashCode();
            }
            if (raids_ != null)
            {
                hash ^= Raids.GetHashCode();
            }
            return(hash);
        }