示例#1
0
 public void MergeFrom(Response other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Unknown1 != 0)
     {
         Unknown1 = other.Unknown1;
     }
     if (other.Unknown2 != 0L)
     {
         Unknown2 = other.Unknown2;
     }
     if (other.ApiUrl.Length != 0)
     {
         ApiUrl = other.ApiUrl;
     }
     if (other.unknown6_ != null)
     {
         if (unknown6_ == null)
         {
             unknown6_ = new global::PokemonGo.RocketAPI.GeneratedCode.Response.Types.Unknown6();
         }
         Unknown6.MergeFrom(other.Unknown6);
     }
     if (other.auth_ != null)
     {
         if (auth_ == null)
         {
             auth_ = new global::PokemonGo.RocketAPI.GeneratedCode.Response.Types.Auth();
         }
         Auth.MergeFrom(other.Auth);
     }
     payload_.Add(other.payload_);
     if (other.ErrorMessage.Length != 0)
     {
         ErrorMessage = other.ErrorMessage;
     }
 }