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

            if (gymState_ != null)
            {
                hash ^= GymState.GetHashCode();
            }
            hash ^= attackers_.GetHashCode();
            hash ^= playerExperienceAwarded_.GetHashCode();
            if (NextDefenderPokemonId != 0L)
            {
                hash ^= NextDefenderPokemonId.GetHashCode();
            }
            if (GymPointsDelta != 0)
            {
                hash ^= GymPointsDelta.GetHashCode();
            }
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (gymState_ != null)
            {
                hash ^= GymState.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            hash ^= urls_.GetHashCode();
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            return(hash);
        }