Beispiel #1
0
 public void MergeFrom(EncounterTutorialCompleteResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.pokemonData_ != null)
     {
         if (pokemonData_ == null)
         {
             pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.captureAward_ != null)
     {
         if (captureAward_ == null)
         {
             captureAward_ = new global::PokemonGoDesktop.API.Proto.CaptureAward();
         }
         CaptureAward.MergeFrom(other.CaptureAward);
     }
 }
 public void MergeFrom(CatchPokemonResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.MissPercent != 0D)
     {
         MissPercent = other.MissPercent;
     }
     if (other.CapturedPokemonId != 0UL)
     {
         CapturedPokemonId = other.CapturedPokemonId;
     }
     if (other.captureAward_ != null)
     {
         if (captureAward_ == null)
         {
             captureAward_ = new global::PokemonGoDesktop.API.Proto.CaptureAward();
         }
         CaptureAward.MergeFrom(other.CaptureAward);
     }
 }
        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.CatchPokemonResponse.Types.CatchStatus)input.ReadEnum();
                    break;
                }

                case 17: {
                    MissPercent = input.ReadDouble();
                    break;
                }

                case 25: {
                    CapturedPokemonId = input.ReadFixed64();
                    break;
                }

                case 34: {
                    if (captureAward_ == null)
                    {
                        captureAward_ = new global::PokemonGoDesktop.API.Proto.CaptureAward();
                    }
                    input.ReadMessage(captureAward_);
                    break;
                }
                }
            }
        }
Beispiel #4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    result_ = (global::PokemonGoDesktop.API.Proto.EncounterTutorialCompleteResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (pokemonData_ == null)
                    {
                        pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(pokemonData_);
                    break;
                }

                case 26: {
                    if (captureAward_ == null)
                    {
                        captureAward_ = new global::PokemonGoDesktop.API.Proto.CaptureAward();
                    }
                    input.ReadMessage(captureAward_);
                    break;
                }
                }
            }
        }