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);
 }
Exemplo 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);
     }
 }
Exemplo 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);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    result_ = (global::POGOProtos.Networking.Responses.GymDeployResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (gymStatusAndDefenders_ == null)
                    {
                        gymStatusAndDefenders_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders();
                    }
                    input.ReadMessage(gymStatusAndDefenders_);
                    break;
                }

                case 26: {
                    if (awardedGymBadge_ == null)
                    {
                        awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge();
                    }
                    input.ReadMessage(awardedGymBadge_);
                    break;
                }

                case 32: {
                    CooldownCompleteTimestampMs = input.ReadInt64();
                    break;
                }
                }
            }
        }
 public void MergeFrom(BattleResults other)
 {
     if (other == null)
     {
         return;
     }
     if (other.gymState_ != null)
     {
         if (gymState_ == null)
         {
             gymState_ = new global::POGOProtos.Data.Gym.GymState();
         }
         GymState.MergeFrom(other.GymState);
     }
     attackers_.Add(other.attackers_);
     playerXpAwarded_.Add(other.playerXpAwarded_);
     if (other.NextDefenderPokemonId != 0L)
     {
         NextDefenderPokemonId = other.NextDefenderPokemonId;
     }
     if (other.GymPointsDelta != 0)
     {
         GymPointsDelta = other.GymPointsDelta;
     }
     if (other.gymStatus_ != null)
     {
         if (gymStatus_ == null)
         {
             gymStatus_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders();
         }
         GymStatus.MergeFrom(other.GymStatus);
     }
     participation_.Add(other.participation_);
     raidItemRewards_.Add(other.raidItemRewards_);
     postRaidEncounter_.Add(other.postRaidEncounter_);
     gymBadge_.Add(other.gymBadge_);
     defaultRaidItemRewards_.Add(other.defaultRaidItemRewards_);
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (gymStatusAndDefenders_ == null)
                    {
                        gymStatusAndDefenders_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders();
                    }
                    input.ReadMessage(gymStatusAndDefenders_);
                    break;
                }

                case 18: {
                    Name = input.ReadString();
                    break;
                }

                case 26: {
                    Url = input.ReadString();
                    break;
                }

                case 32: {
                    result_ = (global::POGOProtos.Networking.Responses.GymGetInfoResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 42: {
                    Description = input.ReadString();
                    break;
                }

                case 50: {
                    SecondaryUrl = input.ReadString();
                    break;
                }

                case 58: {
                    if (awardedGymBadge_ == null)
                    {
                        awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge();
                    }
                    input.ReadMessage(awardedGymBadge_);
                    break;
                }

                case 66: {
                    CheckinImageUrl = input.ReadString();
                    break;
                }

                case 74: {
                    if (eventInfo_ == null)
                    {
                        eventInfo_ = new global::POGOProtos.Data.Raid.EventInfo();
                    }
                    input.ReadMessage(eventInfo_);
                    break;
                }

                case 82: {
                    if (displayWeather_ == null)
                    {
                        displayWeather_ = new global::POGOProtos.Map.Weather.DisplayWeather();
                    }
                    input.ReadMessage(displayWeather_);
                    break;
                }
                }
            }
        }
Exemplo n.º 7
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    input.SkipLastField();
                    break;

                case 10: {
                    if (gymState_ == null)
                    {
                        gymState_ = new global::POGOProtos.Data.Gym.GymState();
                    }
                    input.ReadMessage(gymState_);
                    break;
                }

                case 18: {
                    attackers_.AddEntriesFrom(input, _repeated_attackers_codec);
                    break;
                }

                case 26:
                case 24: {
                    playerXpAwarded_.AddEntriesFrom(input, _repeated_playerXpAwarded_codec);
                    break;
                }

                case 32: {
                    NextDefenderPokemonId = input.ReadInt64();
                    break;
                }

                case 40: {
                    GymPointsDelta = input.ReadInt32();
                    break;
                }

                case 50: {
                    if (gymStatus_ == null)
                    {
                        gymStatus_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders();
                    }
                    input.ReadMessage(gymStatus_);
                    break;
                }

                case 58: {
                    participation_.AddEntriesFrom(input, _repeated_participation_codec);
                    break;
                }

                case 66: {
                    raidItemRewards_.AddEntriesFrom(input, _repeated_raidItemRewards_codec);
                    break;
                }

                case 74: {
                    postRaidEncounter_.AddEntriesFrom(input, _repeated_postRaidEncounter_codec);
                    break;
                }

                case 82: {
                    gymBadge_.AddEntriesFrom(input, _repeated_gymBadge_codec);
                    break;
                }

                case 90: {
                    defaultRaidItemRewards_.AddEntriesFrom(input, _repeated_defaultRaidItemRewards_codec);
                    break;
                }
                }
            }
        }
Exemplo n.º 8
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 8: {
                    result_ = (global::POGOProtos.Networking.Responses.GymFeedPokemonResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (gymStatusAndDefenders_ == null)
                    {
                        gymStatusAndDefenders_ = new global::POGOProtos.Data.Gym.GymStatusAndDefenders();
                    }
                    input.ReadMessage(gymStatusAndDefenders_);
                    break;
                }

                case 26: {
                    if (awardedGymBadge_ == null)
                    {
                        awardedGymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge();
                    }
                    input.ReadMessage(awardedGymBadge_);
                    break;
                }

                case 32: {
                    StardustAwarded = input.ReadInt32();
                    break;
                }

                case 40: {
                    XpAwarded = input.ReadInt32();
                    break;
                }

                case 48: {
                    NumCandyAwarded = input.ReadInt32();
                    break;
                }

                case 56: {
                    familyCandyId_ = (global::POGOProtos.Enums.PokemonFamilyId)input.ReadEnum();
                    break;
                }

                case 64: {
                    CooldownComplete = input.ReadInt64();
                    break;
                }
                }
            }
        }