Beispiel #1
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);
        }
Beispiel #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 ^= 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);
        }