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

            if (Item != 0)
            {
                hash ^= Item.GetHashCode();
            }
            if (StartingQuantity != 0)
            {
                hash ^= StartingQuantity.GetHashCode();
            }
            if (GymId.Length != 0)
            {
                hash ^= GymId.GetHashCode();
            }
            if (PokemonId != 0UL)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (PlayerLatDegrees != 0D)
            {
                hash ^= PlayerLatDegrees.GetHashCode();
            }
            if (PlayerLngDegrees != 0D)
            {
                hash ^= PlayerLngDegrees.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Item != 0)
            {
                hash ^= Item.GetHashCode();
            }
            if (StartingQuantity != 0)
            {
                hash ^= StartingQuantity.GetHashCode();
            }
            if (GymId.Length != 0)
            {
                hash ^= GymId.GetHashCode();
            }
            if (PokemonId != 0UL)
            {
                hash ^= PokemonId.GetHashCode();
            }
            if (PlayerLatDegrees != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PlayerLatDegrees);
            }
            if (PlayerLngDegrees != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(PlayerLngDegrees);
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }