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

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

                case 8: {
                    status_ = (global::PokemonGoDesktop.API.Proto.SetPlayerTeamResponse.Types.Status)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (playerData_ == null)
                    {
                        playerData_ = new global::PokemonGoDesktop.API.Proto.PlayerData();
                    }
                    input.ReadMessage(playerData_);
                    break;
                }
                }
            }
        }
Example #2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    Success = input.ReadBool();
                    break;
                }

                case 18: {
                    if (playerData_ == null)
                    {
                        playerData_ = new global::PokemonGoDesktop.API.Proto.PlayerData();
                    }
                    input.ReadMessage(playerData_);
                    break;
                }
                }
            }
        }
Example #3
0
 public void MergeFrom(SetPlayerTeamResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.playerData_ != null)
     {
         if (playerData_ == null)
         {
             playerData_ = new global::PokemonGoDesktop.API.Proto.PlayerData();
         }
         PlayerData.MergeFrom(other.PlayerData);
     }
 }
Example #4
0
 public void MergeFrom(GetPlayerResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Success != false)
     {
         Success = other.Success;
     }
     if (other.playerData_ != null)
     {
         if (playerData_ == null)
         {
             playerData_ = new global::PokemonGoDesktop.API.Proto.PlayerData();
         }
         PlayerData.MergeFrom(other.PlayerData);
     }
 }