public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    StatusCode = input.ReadInt32();
                    break;
                }

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

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

                case 50: {
                    if (unknown6_ == null)
                    {
                        unknown6_ = new global::PokemonGoDesktop.API.Proto.Unknown6Response();
                    }
                    input.ReadMessage(unknown6_);
                    break;
                }

                case 58: {
                    if (authTicket_ == null)
                    {
                        authTicket_ = new global::PokemonGoDesktop.API.Proto.AuthTicket();
                    }
                    input.ReadMessage(authTicket_);
                    break;
                }

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

                case 810: {
                    Error = input.ReadString();
                    break;
                }
                }
            }
        }
Esempio n. 2
0
 public void MergeFrom(RequestEnvelope other)
 {
     if (other == null)
     {
         return;
     }
     if (other.StatusCode != 0)
     {
         StatusCode = other.StatusCode;
     }
     if (other.RequestId != 0UL)
     {
         RequestId = other.RequestId;
     }
     requests_.Add(other.requests_);
     if (other.unknown6_ != null)
     {
         if (unknown6_ == null)
         {
             unknown6_ = new global::PokemonGoDesktop.API.Proto.Unknown6();
         }
         Unknown6.MergeFrom(other.Unknown6);
     }
     if (other.Latitude != 0D)
     {
         Latitude = other.Latitude;
     }
     if (other.Longitude != 0D)
     {
         Longitude = other.Longitude;
     }
     if (other.Altitude != 0D)
     {
         Altitude = other.Altitude;
     }
     if (other.authInfo_ != null)
     {
         if (authInfo_ == null)
         {
             authInfo_ = new global::PokemonGoDesktop.API.Proto.RequestEnvelope.Types.AuthInfo();
         }
         AuthInfo.MergeFrom(other.AuthInfo);
     }
     if (other.authTicket_ != null)
     {
         if (authTicket_ == null)
         {
             authTicket_ = new global::PokemonGoDesktop.API.Proto.AuthTicket();
         }
         AuthTicket.MergeFrom(other.AuthTicket);
     }
     if (other.Unknown12 != 0L)
     {
         Unknown12 = other.Unknown12;
     }
 }
 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;
     }
     if (other.unknown6_ != null)
     {
         if (unknown6_ == null)
         {
             unknown6_ = new global::PokemonGoDesktop.API.Proto.Unknown6Response();
         }
         Unknown6.MergeFrom(other.Unknown6);
     }
     if (other.authTicket_ != null)
     {
         if (authTicket_ == null)
         {
             authTicket_ = new global::PokemonGoDesktop.API.Proto.AuthTicket();
         }
         AuthTicket.MergeFrom(other.AuthTicket);
     }
     returns_.Add(other.returns_);
     if (other.Error.Length != 0)
     {
         Error = other.Error;
     }
 }
Esempio n. 4
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    StatusCode = input.ReadInt32();
                    break;
                }

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

                case 34: {
                    requests_.AddEntriesFrom(input, _repeated_requests_codec);
                    break;
                }

                case 50: {
                    if (unknown6_ == null)
                    {
                        unknown6_ = new global::PokemonGoDesktop.API.Proto.Unknown6();
                    }
                    input.ReadMessage(unknown6_);
                    break;
                }

                case 57: {
                    Latitude = input.ReadDouble();
                    break;
                }

                case 65: {
                    Longitude = input.ReadDouble();
                    break;
                }

                case 73: {
                    Altitude = input.ReadDouble();
                    break;
                }

                case 82: {
                    if (authInfo_ == null)
                    {
                        authInfo_ = new global::PokemonGoDesktop.API.Proto.RequestEnvelope.Types.AuthInfo();
                    }
                    input.ReadMessage(authInfo_);
                    break;
                }

                case 90: {
                    if (authTicket_ == null)
                    {
                        authTicket_ = new global::PokemonGoDesktop.API.Proto.AuthTicket();
                    }
                    input.ReadMessage(authTicket_);
                    break;
                }

                case 96: {
                    Unknown12 = input.ReadInt64();
                    break;
                }
                }
            }
        }