Example #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);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (QuestType != 0)
            {
                hash ^= QuestType.GetHashCode();
            }
            if (dailyQuest_ != null)
            {
                hash ^= DailyQuest.GetHashCode();
            }
            if (multiPart_ != null)
            {
                hash ^= MultiPart.GetHashCode();
            }
            if (catchPokemon_ != null)
            {
                hash ^= CatchPokemon.GetHashCode();
            }
            if (addFriend_ != null)
            {
                hash ^= AddFriend.GetHashCode();
            }
            if (tradePokemon_ != null)
            {
                hash ^= TradePokemon.GetHashCode();
            }
            if (QuestId.Length != 0)
            {
                hash ^= QuestId.GetHashCode();
            }
            if (QuestSeed != 0L)
            {
                hash ^= QuestSeed.GetHashCode();
            }
            if (QuestContext != 0)
            {
                hash ^= QuestContext.GetHashCode();
            }
            if (TemplateId.Length != 0)
            {
                hash ^= TemplateId.GetHashCode();
            }
            if (Progress != 0)
            {
                hash ^= Progress.GetHashCode();
            }
            if (goal_ != null)
            {
                hash ^= Goal.GetHashCode();
            }
            if (Status != 0)
            {
                hash ^= Status.GetHashCode();
            }
            hash ^= questRewards_.GetHashCode();
            if (CreationTimestampMs != 0L)
            {
                hash ^= CreationTimestampMs.GetHashCode();
            }
            if (LastUpdateTimestampMs != 0L)
            {
                hash ^= LastUpdateTimestampMs.GetHashCode();
            }
            if (CompeletionTimestampMs != 0L)
            {
                hash ^= CompeletionTimestampMs.GetHashCode();
            }
            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            if (AdminGenerated != false)
            {
                hash ^= AdminGenerated.GetHashCode();
            }
            if (StampCountOverrideEnabled != false)
            {
                hash ^= StampCountOverrideEnabled.GetHashCode();
            }
            if (StampCountOverride != 0)
            {
                hash ^= StampCountOverride.GetHashCode();
            }
            if (S2CellId != 0L)
            {
                hash ^= S2CellId.GetHashCode();
            }
            if (StoryQuestTemplateVersion != 0)
            {
                hash ^= StoryQuestTemplateVersion.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Example #3
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);
        }