public void MergeFrom(GymDeployResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.gymStatusAndDefenders_ != null)
     {
         if (gymStatusAndDefenders_ == null)
         {
             gymStatusAndDefenders_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders();
         }
         GymStatusAndDefenders.MergeFrom(other.GymStatusAndDefenders);
     }
     if (other.awardedGymBadge_ != null)
     {
         if (awardedGymBadge_ == null)
         {
             awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge();
         }
         AwardedGymBadge.MergeFrom(other.AwardedGymBadge);
     }
     if (other.CooldownCompleteTimestampMs != 0L)
     {
         CooldownCompleteTimestampMs = other.CooldownCompleteTimestampMs;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (gymStatusAndDefenders_ != null)
            {
                hash ^= GymStatusAndDefenders.GetHashCode();
            }
            if (awardedGymBadge_ != null)
            {
                hash ^= AwardedGymBadge.GetHashCode();
            }
            if (CooldownCompleteTimestampMs != 0L)
            {
                hash ^= CooldownCompleteTimestampMs.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #3
0
 public void MergeFrom(GymGetInfoResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.gymStatusAndDefenders_ != null)
     {
         if (gymStatusAndDefenders_ == null)
         {
             gymStatusAndDefenders_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders();
         }
         GymStatusAndDefenders.MergeFrom(other.GymStatusAndDefenders);
     }
     if (other.Name.Length != 0)
     {
         Name = other.Name;
     }
     if (other.Url.Length != 0)
     {
         Url = other.Url;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.Description.Length != 0)
     {
         Description = other.Description;
     }
     if (other.SecondaryUrl.Length != 0)
     {
         SecondaryUrl = other.SecondaryUrl;
     }
     if (other.awardedGymBadge_ != null)
     {
         if (awardedGymBadge_ == null)
         {
             awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge();
         }
         AwardedGymBadge.MergeFrom(other.AwardedGymBadge);
     }
     if (other.CheckinImageUrl.Length != 0)
     {
         CheckinImageUrl = other.CheckinImageUrl;
     }
     if (other.eventInfo_ != null)
     {
         if (eventInfo_ == null)
         {
             eventInfo_ = new global::POGOProtos.Data.Raid.EventInfo();
         }
         EventInfo.MergeFrom(other.EventInfo);
     }
 }
        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);
        }
Exemple #5
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (gymStatusAndDefenders_ != null)
            {
                hash ^= GymStatusAndDefenders.GetHashCode();
            }
            if (Name.Length != 0)
            {
                hash ^= Name.GetHashCode();
            }
            if (Url.Length != 0)
            {
                hash ^= Url.GetHashCode();
            }
            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (Description.Length != 0)
            {
                hash ^= Description.GetHashCode();
            }
            if (SecondaryUrl.Length != 0)
            {
                hash ^= SecondaryUrl.GetHashCode();
            }
            if (awardedGymBadge_ != null)
            {
                hash ^= AwardedGymBadge.GetHashCode();
            }
            if (CheckinImageUrl.Length != 0)
            {
                hash ^= CheckinImageUrl.GetHashCode();
            }
            if (eventInfo_ != null)
            {
                hash ^= EventInfo.GetHashCode();
            }
            if (displayWeather_ != null)
            {
                hash ^= DisplayWeather.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #6
0
 public void MergeFrom(GymFeedPokemonResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.gymStatusAndDefenders_ != null)
     {
         if (gymStatusAndDefenders_ == null)
         {
             gymStatusAndDefenders_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders();
         }
         GymStatusAndDefenders.MergeFrom(other.GymStatusAndDefenders);
     }
     if (other.awardedGymBadge_ != null)
     {
         if (awardedGymBadge_ == null)
         {
             awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge();
         }
         AwardedGymBadge.MergeFrom(other.AwardedGymBadge);
     }
     if (other.StardustAwarded != 0)
     {
         StardustAwarded = other.StardustAwarded;
     }
     if (other.XpAwarded != 0)
     {
         XpAwarded = other.XpAwarded;
     }
     if (other.NumCandyAwarded != 0)
     {
         NumCandyAwarded = other.NumCandyAwarded;
     }
     if (other.FamilyCandyId != 0)
     {
         FamilyCandyId = other.FamilyCandyId;
     }
     if (other.CooldownComplete != 0L)
     {
         CooldownComplete = other.CooldownComplete;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #7
0
        public override int GetHashCode()
        {
            int hash = 1;

            if (Result != 0)
            {
                hash ^= Result.GetHashCode();
            }
            if (gymStatusAndDefenders_ != null)
            {
                hash ^= GymStatusAndDefenders.GetHashCode();
            }
            if (awardedGymBadge_ != null)
            {
                hash ^= AwardedGymBadge.GetHashCode();
            }
            if (StardustAwarded != 0)
            {
                hash ^= StardustAwarded.GetHashCode();
            }
            if (XpAwarded != 0)
            {
                hash ^= XpAwarded.GetHashCode();
            }
            if (NumCandyAwarded != 0)
            {
                hash ^= NumCandyAwarded.GetHashCode();
            }
            if (FamilyCandyId != 0)
            {
                hash ^= FamilyCandyId.GetHashCode();
            }
            if (CooldownComplete != 0L)
            {
                hash ^= CooldownComplete.GetHashCode();
            }
            if (_unknownFields != null)
            {
                hash ^= _unknownFields.GetHashCode();
            }
            return(hash);
        }
Exemple #8
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);
 }