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);
 }
Esempio n. 2
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);
     }
 }
Esempio n. 3
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);
 }
Esempio n. 4
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);
 }