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

            if (TimestampMs != 0L)
            {
                hash ^= TimestampMs.GetHashCode();
            }
            if (Sfida != false)
            {
                hash ^= Sfida.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.CatchPokemon)
            {
                hash ^= CatchPokemon.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.FortSearch)
            {
                hash ^= FortSearch.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.BuddyPokemon)
            {
                hash ^= BuddyPokemon.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.RaidRewards)
            {
                hash ^= RaidRewards.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.PasscodeRewards)
            {
                hash ^= PasscodeRewards.GetHashCode();
            }
            hash ^= (int)actionCase_;
            return(hash);
        }
        public override int GetHashCode()
        {
            int hash = 1;

            if (TimestampMs != 0L)
            {
                hash ^= TimestampMs.GetHashCode();
            }
            if (Sfida != false)
            {
                hash ^= Sfida.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.CatchPokemon)
            {
                hash ^= CatchPokemon.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.FortSearch)
            {
                hash ^= FortSearch.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.BuddyPokemon)
            {
                hash ^= BuddyPokemon.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.RaidRewards)
            {
                hash ^= RaidRewards.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.PasscodeRewards)
            {
                hash ^= PasscodeRewards.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.CompleteQuest)
            {
                hash ^= CompleteQuest.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.CompleteQuestStampCard)
            {
                hash ^= CompleteQuestStampCard.GetHashCode();
            }
            if (actionCase_ == ActionOneofCase.CompleteQuestPokemonEncounter)
            {
                hash ^= CompleteQuestPokemonEncounter.GetHashCode();
            }
            hash ^= (int)actionCase_;
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Ejemplo n.º 3
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);
        }