Esempio n. 1
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (RaidSeed != 0L)
            {
                hash ^= RaidSeed.GetHashCode();
            }
            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (StartTimeMs != 0L)
            {
                hash ^= StartTimeMs.GetHashCode();
            }
            if (EndTimeMs != 0L)
            {
                hash ^= EndTimeMs.GetHashCode();
            }
            if (ImageUrl.Length != 0)
            {
                hash ^= ImageUrl.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude);
            }
            if (Longitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude);
            }
            if (GymName.Length != 0)
            {
                hash ^= GymName.GetHashCode();
            }
            if (SpawnTimeMs != 0L)
            {
                hash ^= SpawnTimeMs.GetHashCode();
            }
            if (IsCancelled != false)
            {
                hash ^= IsCancelled.GetHashCode();
            }
            if (raidPokemon_ != null)
            {
                hash ^= RaidPokemon.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (RaidSeed != 0L)
            {
                hash ^= RaidSeed.GetHashCode();
            }
            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (StartTimeMs != 0L)
            {
                hash ^= StartTimeMs.GetHashCode();
            }
            if (EndTimeMs != 0L)
            {
                hash ^= EndTimeMs.GetHashCode();
            }
            if (ImageUrl.Length != 0)
            {
                hash ^= ImageUrl.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= Latitude.GetHashCode();
            }
            if (Longitude != 0D)
            {
                hash ^= Longitude.GetHashCode();
            }
            if (GymName.Length != 0)
            {
                hash ^= GymName.GetHashCode();
            }
            if (SpawnTimeMs != 0L)
            {
                hash ^= SpawnTimeMs.GetHashCode();
            }
            if (IsCancelled != false)
            {
                hash ^= IsCancelled.GetHashCode();
            }
            if (raidPokemon_ != null)
            {
                hash ^= RaidPokemon.GetHashCode();
            }
            return(hash);
        }
Esempio n. 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = Id;
         hashCode = (hashCode * 397) ^ (GymName != null ? GymName.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ GymRate;
         hashCode = (hashCode * 397) ^ (GymLocation != null ? GymLocation.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Region != null ? Region.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (int)MbrshipPrice;
         hashCode = (hashCode * 397) ^ (int)GymArea;
         hashCode = (hashCode * 397) ^ (int)FoundYear;
         hashCode = (hashCode * 397) ^ (Facilities != null ? Facilities.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Url != null ? Url.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Description != null ? Description.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (GymImgUrl != null ? GymImgUrl.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (Comments != null ? Comments.GetHashCode() : 0);
         return(hashCode);
     }
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (StartTimeMs != 0L)
            {
                hash ^= StartTimeMs.GetHashCode();
            }
            if (EndTimeMs != 0L)
            {
                hash ^= EndTimeMs.GetHashCode();
            }
            if (ImageUrl.Length != 0)
            {
                hash ^= ImageUrl.GetHashCode();
            }
            if (Latitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Latitude);
            }
            if (Longitude != 0D)
            {
                hash ^= pbc::ProtobufEqualityComparers.BitwiseDoubleEqualityComparer.GetHashCode(Longitude);
            }
            if (GymName.Length != 0)
            {
                hash ^= GymName.GetHashCode();
            }
            hash ^= rewards_.GetHashCode();
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }