예제 #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::PokemonGoDesktop.API.Proto.UseIncenseResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (appliedIncense_ == null)
                    {
                        appliedIncense_ = new global::PokemonGoDesktop.API.Proto.AppliedItem();
                    }
                    input.ReadMessage(appliedIncense_);
                    break;
                }
                }
            }
        }
예제 #2
0
 public void MergeFrom(UseIncenseResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.appliedIncense_ != null)
     {
         if (appliedIncense_ == null)
         {
             appliedIncense_ = new global::PokemonGoDesktop.API.Proto.AppliedItem();
         }
         AppliedIncense.MergeFrom(other.AppliedIncense);
     }
 }