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.EquipBadgeResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (equipped_ == null)
                    {
                        equipped_ = new global::POGOProtos.Data.Player.EquippedBadge();
                    }
                    input.ReadMessage(equipped_);
                    break;
                }
                }
            }
        }
예제 #2
0
 public void MergeFrom(EquipBadgeResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.equipped_ != null)
     {
         if (equipped_ == null)
         {
             equipped_ = new global::POGOProtos.Data.Player.EquippedBadge();
         }
         Equipped.MergeFrom(other.Equipped);
     }
 }
예제 #3
0
        public void MergeFrom(pb::CodedInputStream input)
        {
            uint tag;

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

                case 8: {
                    CreationTimestampMs = input.ReadInt64();
                    break;
                }

                case 18: {
                    Username = input.ReadString();
                    break;
                }

                case 40: {
                    team_ = (global::POGOProtos.Enums.TeamColor)input.ReadEnum();
                    break;
                }

                case 58:
                case 56: {
                    tutorialState_.AddEntriesFrom(input, _repeated_tutorialState_codec);
                    break;
                }

                case 66: {
                    if (avatar_ == null)
                    {
                        avatar_ = new global::POGOProtos.Data.Player.PlayerAvatar();
                    }
                    input.ReadMessage(avatar_);
                    break;
                }

                case 72: {
                    MaxPokemonStorage = input.ReadInt32();
                    break;
                }

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

                case 90: {
                    if (dailyBonus_ == null)
                    {
                        dailyBonus_ = new global::POGOProtos.Data.Player.DailyBonus();
                    }
                    input.ReadMessage(dailyBonus_);
                    break;
                }

                case 98: {
                    if (equippedBadge_ == null)
                    {
                        equippedBadge_ = new global::POGOProtos.Data.Player.EquippedBadge();
                    }
                    input.ReadMessage(equippedBadge_);
                    break;
                }

                case 106: {
                    if (contactSettings_ == null)
                    {
                        contactSettings_ = new global::POGOProtos.Data.Player.ContactSettings();
                    }
                    input.ReadMessage(contactSettings_);
                    break;
                }

                case 114: {
                    currencies_.AddEntriesFrom(input, _repeated_currencies_codec);
                    break;
                }

                case 120: {
                    RemainingCodenameClaims = input.ReadInt32();
                    break;
                }

                case 130: {
                    if (buddyPokemon_ == null)
                    {
                        buddyPokemon_ = new global::POGOProtos.Data.BuddyPokemon();
                    }
                    input.ReadMessage(buddyPokemon_);
                    break;
                }

                case 136: {
                    BattleLockoutEndMs = input.ReadInt64();
                    break;
                }
                }
            }
        }
예제 #4
0
 public void MergeFrom(PlayerData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.CreationTimestampMs != 0L)
     {
         CreationTimestampMs = other.CreationTimestampMs;
     }
     if (other.Username.Length != 0)
     {
         Username = other.Username;
     }
     if (other.Team != 0)
     {
         Team = other.Team;
     }
     tutorialState_.Add(other.tutorialState_);
     if (other.avatar_ != null)
     {
         if (avatar_ == null)
         {
             avatar_ = new global::POGOProtos.Data.Player.PlayerAvatar();
         }
         Avatar.MergeFrom(other.Avatar);
     }
     if (other.MaxPokemonStorage != 0)
     {
         MaxPokemonStorage = other.MaxPokemonStorage;
     }
     if (other.MaxItemStorage != 0)
     {
         MaxItemStorage = other.MaxItemStorage;
     }
     if (other.dailyBonus_ != null)
     {
         if (dailyBonus_ == null)
         {
             dailyBonus_ = new global::POGOProtos.Data.Player.DailyBonus();
         }
         DailyBonus.MergeFrom(other.DailyBonus);
     }
     if (other.equippedBadge_ != null)
     {
         if (equippedBadge_ == null)
         {
             equippedBadge_ = new global::POGOProtos.Data.Player.EquippedBadge();
         }
         EquippedBadge.MergeFrom(other.EquippedBadge);
     }
     if (other.contactSettings_ != null)
     {
         if (contactSettings_ == null)
         {
             contactSettings_ = new global::POGOProtos.Data.Player.ContactSettings();
         }
         ContactSettings.MergeFrom(other.ContactSettings);
     }
     currencies_.Add(other.currencies_);
     if (other.RemainingCodenameClaims != 0)
     {
         RemainingCodenameClaims = other.RemainingCodenameClaims;
     }
     if (other.buddyPokemon_ != null)
     {
         if (buddyPokemon_ == null)
         {
             buddyPokemon_ = new global::POGOProtos.Data.BuddyPokemon();
         }
         BuddyPokemon.MergeFrom(other.BuddyPokemon);
     }
     if (other.BattleLockoutEndMs != 0L)
     {
         BattleLockoutEndMs = other.BattleLockoutEndMs;
     }
 }