Пример #1
0
 public void MergeFrom(ResponseEnvelope other)
 {
     if (other == null)
     {
         return;
     }
     if (other.StatusCode != 0)
     {
         StatusCode = other.StatusCode;
     }
     if (other.RequestId != 0UL)
     {
         RequestId = other.RequestId;
     }
     if (other.ApiUrl.Length != 0)
     {
         ApiUrl = other.ApiUrl;
     }
     platformReturns_.Add(other.platformReturns_);
     if (other.authTicket_ != null)
     {
         if (authTicket_ == null)
         {
             AuthTicket = new global::WUProtos.Networking.Envelopes.AuthTicket();
         }
         AuthTicket.MergeFrom(other.AuthTicket);
     }
     returns_.Add(other.returns_);
     if (other.Error.Length != 0)
     {
         Error = other.Error;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
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: {
                    StatusCode = (global::WUProtos.Networking.Envelopes.ResponseEnvelope.Types.StatusCode)input.ReadEnum();
                    break;
                }

                case 16: {
                    RequestId = input.ReadUInt64();
                    break;
                }

                case 26: {
                    ApiUrl = input.ReadString();
                    break;
                }

                case 50: {
                    platformReturns_.AddEntriesFrom(input, _repeated_platformReturns_codec);
                    break;
                }

                case 58: {
                    if (authTicket_ == null)
                    {
                        AuthTicket = new global::WUProtos.Networking.Envelopes.AuthTicket();
                    }
                    input.ReadMessage(AuthTicket);
                    break;
                }

                case 802: {
                    returns_.AddEntriesFrom(input, _repeated_returns_codec);
                    break;
                }

                case 810: {
                    Error = input.ReadString();
                    break;
                }
                }
            }
        }