Beispiel #1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    if (battleLog_ == null)
                    {
                        battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
                    }
                    input.ReadMessage(battleLog_);
                    break;
                }

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

                case 34: {
                    if (activeDefender_ == null)
                    {
                        activeDefender_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
                    }
                    input.ReadMessage(activeDefender_);
                    break;
                }

                case 42: {
                    if (activeAttacker_ == null)
                    {
                        activeAttacker_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
                    }
                    input.ReadMessage(activeAttacker_);
                    break;
                }

                case 50: {
                    if (battleUpdate_ == null)
                    {
                        battleUpdate_ = new global::POGOProtos.Data.Battle.BattleUpdate();
                    }
                    input.ReadMessage(battleUpdate_);
                    break;
                }
                }
            }
        }
        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.AttackRaidBattleResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (battleUpdate_ == null)
                    {
                        battleUpdate_ = new global::POGOProtos.Data.Battle.BattleUpdate();
                    }
                    input.ReadMessage(battleUpdate_);
                    break;
                }
                }
            }
        }
Beispiel #3
0
 public void MergeFrom(GymBattleAttackResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.battleUpdate_ != null)
     {
         if (battleUpdate_ == null)
         {
             battleUpdate_ = new global::POGOProtos.Data.Battle.BattleUpdate();
         }
         BattleUpdate.MergeFrom(other.BattleUpdate);
     }
     if (other.gymBadge_ != null)
     {
         if (gymBadge_ == null)
         {
             gymBadge_ = new global::POGOProtos.Data.Badge.AwardedGymBadge();
         }
         GymBadge.MergeFrom(other.GymBadge);
     }
 }
Beispiel #4
0
 public void MergeFrom(AttackGymResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.battleLog_ != null)
     {
         if (battleLog_ == null)
         {
             battleLog_ = new global::POGOProtos.Data.Battle.BattleLog();
         }
         BattleLog.MergeFrom(other.BattleLog);
     }
     if (other.BattleId.Length != 0)
     {
         BattleId = other.BattleId;
     }
     if (other.activeDefender_ != null)
     {
         if (activeDefender_ == null)
         {
             activeDefender_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActiveDefender.MergeFrom(other.ActiveDefender);
     }
     if (other.activeAttacker_ != null)
     {
         if (activeAttacker_ == null)
         {
             activeAttacker_ = new global::POGOProtos.Data.Battle.BattlePokemonInfo();
         }
         ActiveAttacker.MergeFrom(other.ActiveAttacker);
     }
     if (other.battleUpdate_ != null)
     {
         if (battleUpdate_ == null)
         {
             battleUpdate_ = new global::POGOProtos.Data.Battle.BattleUpdate();
         }
         BattleUpdate.MergeFrom(other.BattleUpdate);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Beispiel #5
0
 public void MergeFrom(AttackRaidBattleResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.battleUpdate_ != null)
     {
         if (battleUpdate_ == null)
         {
             battleUpdate_ = new global::POGOProtos.Data.Battle.BattleUpdate();
         }
         BattleUpdate.MergeFrom(other.BattleUpdate);
     }
 }
Beispiel #6
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

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

                case 18: {
                    if (battleUpdate_ == null)
                    {
                        battleUpdate_ = new global::POGOProtos.Data.Battle.BattleUpdate();
                    }
                    input.ReadMessage(battleUpdate_);
                    break;
                }

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