public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            hash ^= itemsAwarded_.GetHashCode();
            if (GemsAwarded != 0)
            {
                hash ^= GemsAwarded.GetHashCode();
            }
            if (pokemonDataEgg_ != null)
            {
                hash ^= PokemonDataEgg.GetHashCode();
            }
            if (ExperienceAwarded != 0)
            {
                hash ^= ExperienceAwarded.GetHashCode();
            }
            if (CooldownCompleteTimestampMs != 0L)
            {
                hash ^= CooldownCompleteTimestampMs.GetHashCode();
            }
            if (ChainHackSequenceNumber != 0)
            {
                hash ^= ChainHackSequenceNumber.GetHashCode();
            }
            if (awardedGymBadge_ != null)
            {
                hash ^= AwardedGymBadge.GetHashCode();
            }
            if (loot_ != null)
            {
                hash ^= Loot.GetHashCode();
            }
            if (bonusLoot_ != null)
            {
                hash ^= BonusLoot.GetHashCode();
            }
            if (RaidTickets != 0)
            {
                hash ^= RaidTickets.GetHashCode();
            }
            if (teamBonusLoot_ != null)
            {
                hash ^= TeamBonusLoot.GetHashCode();
            }
            if (FortId.Length != 0)
            {
                hash ^= FortId.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 2
0
 public void MergeFrom(FortSearchResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     itemsAwarded_.Add(other.itemsAwarded_);
     if (other.GemsAwarded != 0)
     {
         GemsAwarded = other.GemsAwarded;
     }
     if (other.pokemonDataEgg_ != null)
     {
         if (pokemonDataEgg_ == null)
         {
             pokemonDataEgg_ = new global::POGOProtos.Data.PokemonData();
         }
         PokemonDataEgg.MergeFrom(other.PokemonDataEgg);
     }
     if (other.ExperienceAwarded != 0)
     {
         ExperienceAwarded = other.ExperienceAwarded;
     }
     if (other.CooldownCompleteTimestampMs != 0L)
     {
         CooldownCompleteTimestampMs = other.CooldownCompleteTimestampMs;
     }
     if (other.ChainHackSequenceNumber != 0)
     {
         ChainHackSequenceNumber = other.ChainHackSequenceNumber;
     }
     if (other.awardedGymBadge_ != null)
     {
         if (awardedGymBadge_ == null)
         {
             awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge();
         }
         AwardedGymBadge.MergeFrom(other.AwardedGymBadge);
     }
     if (other.loot_ != null)
     {
         if (loot_ == null)
         {
             loot_ = new global::POGOProtos.Inventory.Loot();
         }
         Loot.MergeFrom(other.Loot);
     }
     if (other.bonusLoot_ != null)
     {
         if (bonusLoot_ == null)
         {
             bonusLoot_ = new global::POGOProtos.Inventory.Loot();
         }
         BonusLoot.MergeFrom(other.BonusLoot);
     }
     if (other.RaidTickets != 0)
     {
         RaidTickets = other.RaidTickets;
     }
     if (other.teamBonusLoot_ != null)
     {
         if (teamBonusLoot_ == null)
         {
             teamBonusLoot_ = new global::POGOProtos.Inventory.Loot();
         }
         TeamBonusLoot.MergeFrom(other.TeamBonusLoot);
     }
     if (other.FortId.Length != 0)
     {
         FortId = other.FortId;
     }
     if (other.challengeQuest_ != null)
     {
         if (challengeQuest_ == null)
         {
             challengeQuest_ = new global::POGOProtos.Data.Quests.ClientQuest();
         }
         ChallengeQuest.MergeFrom(other.ChallengeQuest);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }