Exemple #1
0
 public void MergeFrom(NearbyPokemon other)
 {
     if (other == null)
     {
         return;
     }
     if (other.PokemonId != 0)
     {
         PokemonId = other.PokemonId;
     }
     if (other.DistanceInMeters != 0F)
     {
         DistanceInMeters = other.DistanceInMeters;
     }
     if (other.EncounterId != 0UL)
     {
         EncounterId = other.EncounterId;
     }
     if (other.FortId.Length != 0)
     {
         FortId = other.FortId;
     }
     if (other.FortImageUrl.Length != 0)
     {
         FortImageUrl = other.FortImageUrl;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
 }
 public void MergeFrom(BuddyPokemonLogEntry other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.PokemonId != 0)
     {
         PokemonId = other.PokemonId;
     }
     if (other.Amount != 0)
     {
         Amount = other.Amount;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
     if (other.Pokemon != 0UL)
     {
         Pokemon = other.Pokemon;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
                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: {
                            pokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum();
                            break;
                        }

                        case 16: {
                            UseQuestPokemonEncounterDistribuition = input.ReadBool();
                            break;
                        }

                        case 26: {
                            if (pokemonDisplay_ == null)
                            {
                                pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                            }
                            input.ReadMessage(pokemonDisplay_);
                            break;
                        }
                        }
                    }
                }
 public void MergeFrom(CatchPokemonLogEntry other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.PokemonId != 0)
     {
         PokemonId = other.PokemonId;
     }
     if (other.CombatPoints != 0)
     {
         CombatPoints = other.CombatPoints;
     }
     if (other.PokemonDataId != 0UL)
     {
         PokemonDataId = other.PokemonDataId;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
 }
Exemple #5
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: {
                    result_ = (global::POGOProtos.Networking.Responses.GetIncensePokemonResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 16: {
                    pokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum();
                    break;
                }

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

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

                case 42: {
                    EncounterLocation = input.ReadString();
                    break;
                }

                case 49: {
                    EncounterId = input.ReadFixed64();
                    break;
                }

                case 56: {
                    DisappearTimestampMs = input.ReadInt64();
                    break;
                }

                case 66: {
                    if (pokemonDisplay_ == null)
                    {
                        pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(pokemonDisplay_);
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

                case 10: {
                    if (buddy_ == null)
                    {
                        buddy_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(buddy_);
                    break;
                }

                case 16: {
                    BuddyDisplayPokemonId = input.ReadInt32();
                    break;
                }

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

                case 34: {
                    if (lastPokemonCaught_ == null)
                    {
                        lastPokemonCaught_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(lastPokemonCaught_);
                    break;
                }

                case 40: {
                    LastPokemonCaughtDisplayId = input.ReadInt32();
                    break;
                }

                case 48: {
                    LastPokemonCaughtTimestamp = input.ReadInt64();
                    break;
                }

                case 56: {
                    BuddyCandyAwarded = input.ReadInt32();
                    break;
                }
                }
            }
        }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

            while ((tag = input.ReadTag()) != 0)
            {
                switch (tag)
                {
                default:
                    _unknownFields = pb::UnknownFieldSet.MergeFieldFrom(_unknownFields, input);
                    break;

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

                case 17: {
                    EncounterId = input.ReadFixed64();
                    break;
                }

                case 24: {
                    pokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum();
                    break;
                }

                case 32: {
                    ExpirationTimestampMs = input.ReadInt64();
                    break;
                }

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

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

                case 58: {
                    if (pokemonDisplay_ == null)
                    {
                        pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(pokemonDisplay_);
                    break;
                }
                }
            }
        }
Exemple #8
0
 public void MergeFrom(CatchPokemonResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Status != 0)
     {
         Status = other.Status;
     }
     if (other.MissPercent != 0D)
     {
         MissPercent = other.MissPercent;
     }
     if (other.CapturedPokemonId != 0UL)
     {
         CapturedPokemonId = other.CapturedPokemonId;
     }
     if (other.captureAward_ != null)
     {
         if (captureAward_ == null)
         {
             captureAward_ = new global::POGOProtos.Data.Capture.CaptureAward();
         }
         CaptureAward.MergeFrom(other.CaptureAward);
     }
     if (other.CaptureReason != 0)
     {
         CaptureReason = other.CaptureReason;
     }
     if (other.DisplayPokedexId != 0)
     {
         DisplayPokedexId = other.DisplayPokedexId;
     }
     if (other.ThrowsRemaining != 0)
     {
         ThrowsRemaining = other.ThrowsRemaining;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #9
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    pokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum();
                    break;
                }

                case 21: {
                    DistanceInMeters = input.ReadFloat();
                    break;
                }

                case 25: {
                    EncounterId = input.ReadFixed64();
                    break;
                }

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

                case 42: {
                    FortImageUrl = input.ReadString();
                    break;
                }

                case 50: {
                    if (pokemonDisplay_ == null)
                    {
                        pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(pokemonDisplay_);
                    break;
                }
                }
            }
        }
Exemple #10
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: {
                    result_ = (global::POGOProtos.Data.Logs.CompleteQuestPokemonEncounterLogEntry.Types.Result)input.ReadEnum();
                    break;
                }

                case 16: {
                    PokedexNumber = input.ReadInt32();
                    break;
                }

                case 24: {
                    CombatPoints = input.ReadInt32();
                    break;
                }

                case 33: {
                    PokemonId = input.ReadFixed64();
                    break;
                }

                case 42: {
                    if (pokemonDisplay_ == null)
                    {
                        pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(pokemonDisplay_);
                    break;
                }

                case 48: {
                    encounterType_ = (global::POGOProtos.Enums.EncounterType)input.ReadEnum();
                    break;
                }
                }
            }
        }
Exemple #11
0
 public void MergeFrom(GetIncensePokemonResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.PokemonId != 0)
     {
         PokemonId = other.PokemonId;
     }
     if (other.Latitude != 0D)
     {
         Latitude = other.Latitude;
     }
     if (other.Longitude != 0D)
     {
         Longitude = other.Longitude;
     }
     if (other.EncounterLocation.Length != 0)
     {
         EncounterLocation = other.EncounterLocation;
     }
     if (other.EncounterId != 0UL)
     {
         EncounterId = other.EncounterId;
     }
     if (other.DisappearTimestampMs != 0L)
     {
         DisappearTimestampMs = other.DisappearTimestampMs;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(PlayerFriendDisplay other)
 {
     if (other == null)
     {
         return;
     }
     if (other.buddy_ != null)
     {
         if (buddy_ == null)
         {
             buddy_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         Buddy.MergeFrom(other.Buddy);
     }
     if (other.BuddyDisplayPokemonId != 0)
     {
         BuddyDisplayPokemonId = other.BuddyDisplayPokemonId;
     }
     if (other.BuddyPokemonNickname.Length != 0)
     {
         BuddyPokemonNickname = other.BuddyPokemonNickname;
     }
     if (other.lastPokemonCaught_ != null)
     {
         if (lastPokemonCaught_ == null)
         {
             lastPokemonCaught_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         LastPokemonCaught.MergeFrom(other.LastPokemonCaught);
     }
     if (other.LastPokemonCaughtDisplayId != 0)
     {
         LastPokemonCaughtDisplayId = other.LastPokemonCaughtDisplayId;
     }
     if (other.LastPokemonCaughtTimestamp != 0L)
     {
         LastPokemonCaughtTimestamp = other.LastPokemonCaughtTimestamp;
     }
     if (other.BuddyCandyAwarded != 0)
     {
         BuddyCandyAwarded = other.BuddyCandyAwarded;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    result_ = (global::POGOProtos.Data.Logs.CatchPokemonLogEntry.Types.Result)input.ReadEnum();
                    break;
                }

                case 16: {
                    pokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum();
                    break;
                }

                case 24: {
                    CombatPoints = input.ReadInt32();
                    break;
                }

                case 33: {
                    PokemonDataId = input.ReadFixed64();
                    break;
                }

                case 42: {
                    if (pokemonDisplay_ == null)
                    {
                        pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(pokemonDisplay_);
                    break;
                }
                }
            }
        }
        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: {
                    result_ = (global::POGOProtos.Data.Logs.BuddyPokemonLogEntry.Types.Result)input.ReadEnum();
                    break;
                }

                case 16: {
                    pokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum();
                    break;
                }

                case 24: {
                    Amount = input.ReadInt32();
                    break;
                }

                case 34: {
                    if (pokemonDisplay_ == null)
                    {
                        pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(pokemonDisplay_);
                    break;
                }

                case 41: {
                    Pokemon = input.ReadFixed64();
                    break;
                }
                }
            }
        }
 public void MergeFrom(MapPokemon other)
 {
     if (other == null)
     {
         return;
     }
     if (other.SpawnPointId.Length != 0)
     {
         SpawnPointId = other.SpawnPointId;
     }
     if (other.EncounterId != 0UL)
     {
         EncounterId = other.EncounterId;
     }
     if (other.PokemonId != 0)
     {
         PokemonId = other.PokemonId;
     }
     if (other.ExpirationTimestampMs != 0L)
     {
         ExpirationTimestampMs = other.ExpirationTimestampMs;
     }
     if (other.Latitude != 0D)
     {
         Latitude = other.Latitude;
     }
     if (other.Longitude != 0D)
     {
         Longitude = other.Longitude;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
 public void MergeFrom(PokemonEncounterReward other)
 {
     if (other == null)
     {
         return;
     }
     if (other.PokemonId != 0)
     {
         PokemonId = other.PokemonId;
     }
     if (other.UseQuestPokemonEncounterDistribuition != false)
     {
         UseQuestPokemonEncounterDistribuition = other.UseQuestPokemonEncounterDistribuition;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #17
0
 public void MergeFrom(CompleteQuestPokemonEncounterLogEntry other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.PokedexNumber != 0)
     {
         PokedexNumber = other.PokedexNumber;
     }
     if (other.CombatPoints != 0)
     {
         CombatPoints = other.CombatPoints;
     }
     if (other.PokemonId != 0UL)
     {
         PokemonId = other.PokemonId;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
     if (other.EncounterType != 0)
     {
         EncounterType = other.EncounterType;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #18
0
 public void MergeFrom(PokemonData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id != 0UL)
     {
         Id = other.Id;
     }
     if (other.PokemonId != 0)
     {
         PokemonId = other.PokemonId;
     }
     if (other.Cp != 0)
     {
         Cp = other.Cp;
     }
     if (other.Stamina != 0)
     {
         Stamina = other.Stamina;
     }
     if (other.StaminaMax != 0)
     {
         StaminaMax = other.StaminaMax;
     }
     if (other.Move1 != 0)
     {
         Move1 = other.Move1;
     }
     if (other.Move2 != 0)
     {
         Move2 = other.Move2;
     }
     if (other.DeployedFortId.Length != 0)
     {
         DeployedFortId = other.DeployedFortId;
     }
     if (other.OwnerName.Length != 0)
     {
         OwnerName = other.OwnerName;
     }
     if (other.IsEgg != false)
     {
         IsEgg = other.IsEgg;
     }
     if (other.EggKmWalkedTarget != 0D)
     {
         EggKmWalkedTarget = other.EggKmWalkedTarget;
     }
     if (other.EggKmWalkedStart != 0D)
     {
         EggKmWalkedStart = other.EggKmWalkedStart;
     }
     if (other.Origin != 0)
     {
         Origin = other.Origin;
     }
     if (other.HeightM != 0F)
     {
         HeightM = other.HeightM;
     }
     if (other.WeightKg != 0F)
     {
         WeightKg = other.WeightKg;
     }
     if (other.IndividualAttack != 0)
     {
         IndividualAttack = other.IndividualAttack;
     }
     if (other.IndividualDefense != 0)
     {
         IndividualDefense = other.IndividualDefense;
     }
     if (other.IndividualStamina != 0)
     {
         IndividualStamina = other.IndividualStamina;
     }
     if (other.CpMultiplier != 0F)
     {
         CpMultiplier = other.CpMultiplier;
     }
     if (other.Pokeball != 0)
     {
         Pokeball = other.Pokeball;
     }
     if (other.CapturedCellId != 0UL)
     {
         CapturedCellId = other.CapturedCellId;
     }
     if (other.BattlesAttacked != 0)
     {
         BattlesAttacked = other.BattlesAttacked;
     }
     if (other.BattlesDefended != 0)
     {
         BattlesDefended = other.BattlesDefended;
     }
     if (other.EggIncubatorId.Length != 0)
     {
         EggIncubatorId = other.EggIncubatorId;
     }
     if (other.CreationTimeMs != 0UL)
     {
         CreationTimeMs = other.CreationTimeMs;
     }
     if (other.NumUpgrades != 0)
     {
         NumUpgrades = other.NumUpgrades;
     }
     if (other.AdditionalCpMultiplier != 0F)
     {
         AdditionalCpMultiplier = other.AdditionalCpMultiplier;
     }
     if (other.Favorite != 0)
     {
         Favorite = other.Favorite;
     }
     if (other.Nickname.Length != 0)
     {
         Nickname = other.Nickname;
     }
     if (other.FromFort != 0)
     {
         FromFort = other.FromFort;
     }
     if (other.BuddyCandyAwarded != 0)
     {
         BuddyCandyAwarded = other.BuddyCandyAwarded;
     }
     if (other.BuddyTotalKmWalked != 0F)
     {
         BuddyTotalKmWalked = other.BuddyTotalKmWalked;
     }
     if (other.DisplayPokemonId != 0)
     {
         DisplayPokemonId = other.DisplayPokemonId;
     }
     if (other.DisplayCp != 0)
     {
         DisplayCp = other.DisplayCp;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
 }
 public void MergeFrom(FortData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Id.Length != 0)
     {
         Id = other.Id;
     }
     if (other.LastModifiedTimestampMs != 0L)
     {
         LastModifiedTimestampMs = other.LastModifiedTimestampMs;
     }
     if (other.Latitude != 0D)
     {
         Latitude = other.Latitude;
     }
     if (other.Longitude != 0D)
     {
         Longitude = other.Longitude;
     }
     if (other.OwnedByTeam != 0)
     {
         OwnedByTeam = other.OwnedByTeam;
     }
     if (other.GuardPokemonId != 0)
     {
         GuardPokemonId = other.GuardPokemonId;
     }
     if (other.GuardPokemonCp != 0)
     {
         GuardPokemonCp = other.GuardPokemonCp;
     }
     if (other.Enabled != false)
     {
         Enabled = other.Enabled;
     }
     if (other.Type != 0)
     {
         Type = other.Type;
     }
     if (other.GymPoints != 0L)
     {
         GymPoints = other.GymPoints;
     }
     if (other.IsInBattle != false)
     {
         IsInBattle = other.IsInBattle;
     }
     activeFortModifier_.Add(other.activeFortModifier_);
     if (other.lureInfo_ != null)
     {
         if (lureInfo_ == null)
         {
             lureInfo_ = new global::POGOProtos.Map.Fort.FortLureInfo();
         }
         LureInfo.MergeFrom(other.LureInfo);
     }
     if (other.CooldownCompleteTimestampMs != 0L)
     {
         CooldownCompleteTimestampMs = other.CooldownCompleteTimestampMs;
     }
     if (other.Sponsor != 0)
     {
         Sponsor = other.Sponsor;
     }
     if (other.RenderingType != 0)
     {
         RenderingType = other.RenderingType;
     }
     if (other.DeployLockoutEndMs != 0L)
     {
         DeployLockoutEndMs = other.DeployLockoutEndMs;
     }
     if (other.guardPokemonDisplay_ != null)
     {
         if (guardPokemonDisplay_ == null)
         {
             guardPokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         GuardPokemonDisplay.MergeFrom(other.GuardPokemonDisplay);
     }
     if (other.Closed != false)
     {
         Closed = other.Closed;
     }
     if (other.raidInfo_ != null)
     {
         if (raidInfo_ == null)
         {
             raidInfo_ = new global::POGOProtos.Data.Raid.RaidInfo();
         }
         RaidInfo.MergeFrom(other.RaidInfo);
     }
     if (other.gymDisplay_ != null)
     {
         if (gymDisplay_ == null)
         {
             gymDisplay_ = new global::POGOProtos.Map.Fort.GymDisplay();
         }
         GymDisplay.MergeFrom(other.GymDisplay);
     }
     if (other.Visited != false)
     {
         Visited = other.Visited;
     }
     if (other.SameTeamDeployLockoutEndMs != 0L)
     {
         SameTeamDeployLockoutEndMs = other.SameTeamDeployLockoutEndMs;
     }
     if (other.AllowCheckin != false)
     {
         AllowCheckin = other.AllowCheckin;
     }
     if (other.ImageUrl.Length != 0)
     {
         ImageUrl = other.ImageUrl;
     }
     if (other.InEvent != false)
     {
         InEvent = other.InEvent;
     }
     if (other.BannerUrl.Length != 0)
     {
         BannerUrl = other.BannerUrl;
     }
 }
        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::POGOProtos.Enums.TeamColor)input.ReadEnum();
                    break;
                }

                case 48: {
                    guardPokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum();
                    break;
                }

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

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

                case 72: {
                    type_ = (global::POGOProtos.Map.Fort.FortType)input.ReadEnum();
                    break;
                }

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

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

                case 98:
                case 96: {
                    activeFortModifier_.AddEntriesFrom(input, _repeated_activeFortModifier_codec);
                    break;
                }

                case 106: {
                    if (lureInfo_ == null)
                    {
                        lureInfo_ = new global::POGOProtos.Map.Fort.FortLureInfo();
                    }
                    input.ReadMessage(lureInfo_);
                    break;
                }

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

                case 120: {
                    sponsor_ = (global::POGOProtos.Map.Fort.FortSponsor)input.ReadEnum();
                    break;
                }

                case 128: {
                    renderingType_ = (global::POGOProtos.Map.Fort.FortRenderingType)input.ReadEnum();
                    break;
                }

                case 136: {
                    DeployLockoutEndMs = input.ReadInt64();
                    break;
                }

                case 146: {
                    if (guardPokemonDisplay_ == null)
                    {
                        guardPokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(guardPokemonDisplay_);
                    break;
                }

                case 152: {
                    Closed = input.ReadBool();
                    break;
                }

                case 162: {
                    if (raidInfo_ == null)
                    {
                        raidInfo_ = new global::POGOProtos.Data.Raid.RaidInfo();
                    }
                    input.ReadMessage(raidInfo_);
                    break;
                }

                case 170: {
                    if (gymDisplay_ == null)
                    {
                        gymDisplay_ = new global::POGOProtos.Map.Fort.GymDisplay();
                    }
                    input.ReadMessage(gymDisplay_);
                    break;
                }

                case 176: {
                    Visited = input.ReadBool();
                    break;
                }

                case 184: {
                    SameTeamDeployLockoutEndMs = input.ReadInt64();
                    break;
                }

                case 192: {
                    AllowCheckin = input.ReadBool();
                    break;
                }

                case 202: {
                    ImageUrl = input.ReadString();
                    break;
                }

                case 208: {
                    InEvent = input.ReadBool();
                    break;
                }

                case 218: {
                    BannerUrl = input.ReadString();
                    break;
                }
                }
            }
        }
Exemple #21
0
 public void MergeFrom(TradingPokemon other)
 {
     if (other == null)
     {
         return;
     }
     if (other.PokemonId != 0UL)
     {
         PokemonId = other.PokemonId;
     }
     if (other.PokedexEntryNumber != 0)
     {
         PokedexEntryNumber = other.PokedexEntryNumber;
     }
     if (other.OriginalCp != 0)
     {
         OriginalCp = other.OriginalCp;
     }
     if (other.AdjustedCpMin != 0)
     {
         AdjustedCpMin = other.AdjustedCpMin;
     }
     if (other.AdjustedCpMax != 0)
     {
         AdjustedCpMax = other.AdjustedCpMax;
     }
     if (other.OriginalStamina != 0)
     {
         OriginalStamina = other.OriginalStamina;
     }
     if (other.AdjustedStaminaMin != 0)
     {
         AdjustedStaminaMin = other.AdjustedStaminaMin;
     }
     if (other.AdjustedStaminaMax != 0)
     {
         AdjustedStaminaMax = other.AdjustedStaminaMax;
     }
     if (other.FriendLevelCap != false)
     {
         FriendLevelCap = other.FriendLevelCap;
     }
     if (other.Move1 != 0)
     {
         Move1 = other.Move1;
     }
     if (other.Move2 != 0)
     {
         Move2 = other.Move2;
     }
     if (other.pokemonDisplay_ != null)
     {
         if (pokemonDisplay_ == null)
         {
             pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
         }
         PokemonDisplay.MergeFrom(other.PokemonDisplay);
     }
     if (other.CapturedS2CellId != 0L)
     {
         CapturedS2CellId = other.CapturedS2CellId;
     }
     if (other.tradedPokemon_ != null)
     {
         if (tradedPokemon_ == null)
         {
             tradedPokemon_ = new global::POGOProtos.Data.PokemonData();
         }
         TradedPokemon.MergeFrom(other.TradedPokemon);
     }
     if (other.pokeball_ != null)
     {
         if (pokeball_ == null)
         {
             pokeball_ = new global::POGOProtos.Inventory.Item.ItemData();
         }
         Pokeball.MergeFrom(other.Pokeball);
     }
     if (other.IndividualAttack != 0)
     {
         IndividualAttack = other.IndividualAttack;
     }
     if (other.IndividualDefense != 0)
     {
         IndividualDefense = other.IndividualDefense;
     }
     if (other.IndividualStamina != 0)
     {
         IndividualStamina = other.IndividualStamina;
     }
     if (other.Nickname.Length != 0)
     {
         Nickname = other.Nickname;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Exemple #22
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 9: {
                    PokemonId = input.ReadFixed64();
                    break;
                }

                case 16: {
                    PokedexEntryNumber = input.ReadInt32();
                    break;
                }

                case 24: {
                    OriginalCp = input.ReadInt32();
                    break;
                }

                case 32: {
                    AdjustedCpMin = input.ReadInt32();
                    break;
                }

                case 40: {
                    AdjustedCpMax = input.ReadInt32();
                    break;
                }

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

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

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

                case 72: {
                    FriendLevelCap = input.ReadBool();
                    break;
                }

                case 80: {
                    Move1 = input.ReadInt32();
                    break;
                }

                case 88: {
                    Move2 = input.ReadInt32();
                    break;
                }

                case 98: {
                    if (pokemonDisplay_ == null)
                    {
                        pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(pokemonDisplay_);
                    break;
                }

                case 104: {
                    CapturedS2CellId = input.ReadInt64();
                    break;
                }

                case 114: {
                    if (tradedPokemon_ == null)
                    {
                        tradedPokemon_ = new global::POGOProtos.Data.PokemonData();
                    }
                    input.ReadMessage(tradedPokemon_);
                    break;
                }

                case 122: {
                    if (pokeball_ == null)
                    {
                        pokeball_ = new global::POGOProtos.Inventory.Item.ItemData();
                    }
                    input.ReadMessage(pokeball_);
                    break;
                }

                case 128: {
                    IndividualAttack = input.ReadInt32();
                    break;
                }

                case 136: {
                    IndividualDefense = input.ReadInt32();
                    break;
                }

                case 144: {
                    IndividualStamina = input.ReadInt32();
                    break;
                }

                case 154: {
                    Nickname = input.ReadString();
                    break;
                }
                }
            }
        }
Exemple #23
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: {
                    status_ = (global::POGOProtos.Networking.Responses.CatchPokemonResponse.Types.CatchStatus)input.ReadEnum();
                    break;
                }

                case 17: {
                    MissPercent = input.ReadDouble();
                    break;
                }

                case 25: {
                    CapturedPokemonId = input.ReadFixed64();
                    break;
                }

                case 34: {
                    if (captureAward_ == null)
                    {
                        captureAward_ = new global::POGOProtos.Data.Capture.CaptureAward();
                    }
                    input.ReadMessage(captureAward_);
                    break;
                }

                case 40: {
                    captureReason_ = (global::POGOProtos.Networking.Responses.CatchPokemonResponse.Types.CaptureReason)input.ReadEnum();
                    break;
                }

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

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

                case 66: {
                    if (pokemonDisplay_ == null)
                    {
                        pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(pokemonDisplay_);
                    break;
                }
                }
            }
        }
Exemple #24
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 9: {
                    Id = input.ReadFixed64();
                    break;
                }

                case 16: {
                    pokemonId_ = (global::POGOProtos.Enums.PokemonId)input.ReadEnum();
                    break;
                }

                case 24: {
                    Cp = input.ReadInt32();
                    break;
                }

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

                case 40: {
                    StaminaMax = input.ReadInt32();
                    break;
                }

                case 48: {
                    move1_ = (global::POGOProtos.Enums.PokemonMove)input.ReadEnum();
                    break;
                }

                case 56: {
                    move2_ = (global::POGOProtos.Enums.PokemonMove)input.ReadEnum();
                    break;
                }

                case 66: {
                    DeployedFortId = input.ReadString();
                    break;
                }

                case 74: {
                    OwnerName = input.ReadString();
                    break;
                }

                case 80: {
                    IsEgg = input.ReadBool();
                    break;
                }

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

                case 97: {
                    EggKmWalkedStart = input.ReadDouble();
                    break;
                }

                case 112: {
                    Origin = input.ReadInt32();
                    break;
                }

                case 125: {
                    HeightM = input.ReadFloat();
                    break;
                }

                case 133: {
                    WeightKg = input.ReadFloat();
                    break;
                }

                case 136: {
                    IndividualAttack = input.ReadInt32();
                    break;
                }

                case 144: {
                    IndividualDefense = input.ReadInt32();
                    break;
                }

                case 152: {
                    IndividualStamina = input.ReadInt32();
                    break;
                }

                case 165: {
                    CpMultiplier = input.ReadFloat();
                    break;
                }

                case 168: {
                    pokeball_ = (global::POGOProtos.Inventory.Item.ItemId)input.ReadEnum();
                    break;
                }

                case 176: {
                    CapturedCellId = input.ReadUInt64();
                    break;
                }

                case 184: {
                    BattlesAttacked = input.ReadInt32();
                    break;
                }

                case 192: {
                    BattlesDefended = input.ReadInt32();
                    break;
                }

                case 202: {
                    EggIncubatorId = input.ReadString();
                    break;
                }

                case 208: {
                    CreationTimeMs = input.ReadUInt64();
                    break;
                }

                case 216: {
                    NumUpgrades = input.ReadInt32();
                    break;
                }

                case 229: {
                    AdditionalCpMultiplier = input.ReadFloat();
                    break;
                }

                case 232: {
                    Favorite = input.ReadInt32();
                    break;
                }

                case 242: {
                    Nickname = input.ReadString();
                    break;
                }

                case 248: {
                    FromFort = input.ReadInt32();
                    break;
                }

                case 256: {
                    BuddyCandyAwarded = input.ReadInt32();
                    break;
                }

                case 269: {
                    BuddyTotalKmWalked = input.ReadFloat();
                    break;
                }

                case 272: {
                    DisplayPokemonId = input.ReadInt32();
                    break;
                }

                case 280: {
                    DisplayCp = input.ReadInt32();
                    break;
                }

                case 290: {
                    if (pokemonDisplay_ == null)
                    {
                        pokemonDisplay_ = new global::POGOProtos.Data.PokemonDisplay();
                    }
                    input.ReadMessage(pokemonDisplay_);
                    break;
                }
                }
            }
        }