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

            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (TeamColor != 0)
            {
                hash ^= TeamColor.GetHashCode();
            }
            if (pokemonData_ != null)
            {
                hash ^= PokemonData.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            hash ^= imageUrls_.GetHashCode();
            if (Fp != 0)
            {
                hash ^= Fp.GetHashCode();
            }
            if (Stamina != 0)
            {
                hash ^= Stamina.GetHashCode();
            }
            if (MaxStamina != 0)
            {
                hash ^= MaxStamina.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= Latitude.GetHashCode();
            }
            if (Longitude != 0D)
            {
                hash ^= Longitude.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= modifiers_.GetHashCode();
            if (CloseSoon != false)
            {
                hash ^= CloseSoon.GetHashCode();
            }
            if (CheckinImageUrl.Length != 0)
            {
                hash ^= CheckinImageUrl.GetHashCode();
            }
            if (eventInfo_ != null)
            {
                hash ^= EventInfo.GetHashCode();
            }
            return(hash);
        }
Exemple #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (TeamColor != 0)
            {
                hash ^= TeamColor.GetHashCode();
            }
            if (pokemonData_ != null)
            {
                hash ^= PokemonData.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            hash ^= imageUrls_.GetHashCode();
            if (Fp != 0)
            {
                hash ^= Fp.GetHashCode();
            }
            if (Stamina != 0)
            {
                hash ^= Stamina.GetHashCode();
            }
            if (MaxStamina != 0)
            {
                hash ^= MaxStamina.GetHashCode();
            }
            if (Type != 0)
            {
                hash ^= Type.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude);
            }
            if (Longitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude);
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            hash ^= modifiers_.GetHashCode();
            if (CloseSoon != false)
            {
                hash ^= CloseSoon.GetHashCode();
            }
            if (CheckinImageUrl.Length != 0)
            {
                hash ^= CheckinImageUrl.GetHashCode();
            }
            if (eventInfo_ != null)
            {
                hash ^= EventInfo.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }