Esempio n. 1
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    Id = input.ReadString();
                    break;
                }

                case 16: {
                    LastModifiedTimestampMs = input.ReadInt64();
                    break;
                }

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

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

                case 40: {
                    ownedByTeam_ = (global::PokemonGoDesktop.API.Proto.TeamColor)input.ReadEnum();
                    break;
                }

                case 48: {
                    guardPokemonId_ = (global::PokemonGoDesktop.API.Proto.PokemonId)input.ReadEnum();
                    break;
                }

                case 56: {
                    GuardPokemonCp = input.ReadInt32();
                    break;
                }

                case 64: {
                    Enabled = input.ReadBool();
                    break;
                }

                case 72: {
                    type_ = (global::PokemonGoDesktop.API.Proto.FortType)input.ReadEnum();
                    break;
                }

                case 80: {
                    GymPoints = input.ReadInt64();
                    break;
                }

                case 88: {
                    IsInBattle = input.ReadBool();
                    break;
                }

                case 98: {
                    ActiveFortModifier = input.ReadBytes();
                    break;
                }

                case 106: {
                    if (lureInfo_ == null)
                    {
                        lureInfo_ = new global::PokemonGoDesktop.API.Proto.FortLureInfo();
                    }
                    input.ReadMessage(lureInfo_);
                    break;
                }

                case 112: {
                    CooldownCompleteTimestampMs = input.ReadInt64();
                    break;
                }

                case 120: {
                    sponsor_ = (global::PokemonGoDesktop.API.Proto.FortSponsor)input.ReadEnum();
                    break;
                }

                case 128: {
                    renderingType_ = (global::PokemonGoDesktop.API.Proto.FortRenderingType)input.ReadEnum();
                    break;
                }
                }
            }
        }
Esempio n. 2
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 10: {
                    FortId = input.ReadString();
                    break;
                }

                case 16: {
                    teamColor_ = (global::PokemonGoDesktop.API.Proto.TeamColor)input.ReadEnum();
                    break;
                }

                case 26: {
                    if (pokemonData_ == null)
                    {
                        pokemonData_ = new global::PokemonGoDesktop.API.Proto.PokemonData();
                    }
                    input.ReadMessage(pokemonData_);
                    break;
                }

                case 34: {
                    Name = input.ReadString();
                    break;
                }

                case 42: {
                    imageUrls_.AddEntriesFrom(input, _repeated_imageUrls_codec);
                    break;
                }

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

                case 56: {
                    Stamina = input.ReadInt32();
                    break;
                }

                case 64: {
                    MaxStamina = input.ReadInt32();
                    break;
                }

                case 72: {
                    type_ = (global::PokemonGoDesktop.API.Proto.FortType)input.ReadEnum();
                    break;
                }

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

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

                case 98: {
                    Description = input.ReadString();
                    break;
                }

                case 106: {
                    modifiers_.AddEntriesFrom(input, _repeated_modifiers_codec);
                    break;
                }
                }
            }
        }