Ejemplo n.º 1
0
 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::POGOProtos.Data.Capture.CaptureAward();
         }
         CaptureAward.MergeFrom(other.CaptureAward);
     }
 }
Ejemplo n.º 2
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::POGOProtos.Data.PokemonData();
         }
         PokemonData.MergeFrom(other.PokemonData);
     }
     if (other.captureAward_ != null)
     {
         if (captureAward_ == null)
         {
             captureAward_ = new global::POGOProtos.Data.Capture.CaptureAward();
         }
         CaptureAward.MergeFrom(other.CaptureAward);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    status_ = (global::POGOProtos.Networking.Responses.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::POGOProtos.Data.Capture.CaptureAward();
                    }
                    input.ReadMessage(captureAward_);
                    break;
                }

                case 40: {
                    captureReason_ = (global::POGOProtos.Networking.Responses.CatchPokemonResponse.Types.CaptureReason)input.ReadEnum();
                    break;
                }

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

                case 56: {
                    ThrowsRemaining = input.ReadInt32();
                    break;
                }
                }
            }
        }
Ejemplo n.º 4
0
 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::POGOProtos.Data.Capture.CaptureAward();
         }
         CaptureAward.MergeFrom(other.CaptureAward);
     }
     if (other.CaptureReason != 0)
     {
         CaptureReason = other.CaptureReason;
     }
     if (other.DisplayPokedexId != 0)
     {
         DisplayPokedexId = other.DisplayPokedexId;
     }
     if (other.ThrowsRemaining != 0)
     {
         ThrowsRemaining = other.ThrowsRemaining;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Ejemplo n.º 5
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.EncounterTutorialCompleteResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (pokemonData_ == null)
                    {
                        pokemonData_ = new global::POGOProtos.Data.PokemonData();
                    }
                    input.ReadMessage(pokemonData_);
                    break;
                }

                case 26: {
                    if (captureAward_ == null)
                    {
                        captureAward_ = new global::POGOProtos.Data.Capture.CaptureAward();
                    }
                    input.ReadMessage(captureAward_);
                    break;
                }
                }
            }
        }