Exemplo n.º 1
0
 public void MergeFrom(SetContactSettingsMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.contactSettings_ != null)
     {
         if (contactSettings_ == null)
         {
             contactSettings_ = new global::POGOProtos.Data.Player.ContactSettings();
         }
         ContactSettings.MergeFrom(other.ContactSettings);
     }
 }
 public void MergeFrom(SetContactSettingsMessage other)
 {
     if (other == null)
     {
         return;
     }
     if (other.contactSettings_ != null)
     {
         if (contactSettings_ == null)
         {
             contactSettings_ = new global::POGOProtos.Data.Player.ContactSettings();
         }
         ContactSettings.MergeFrom(other.ContactSettings);
     }
     _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 10: {
                    if (contactSettings_ == null)
                    {
                        contactSettings_ = new global::POGOProtos.Data.Player.ContactSettings();
                    }
                    input.ReadMessage(contactSettings_);
                    break;
                }
                }
            }
        }
Exemplo n.º 4
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;
                }
                }
            }
        }
Exemplo n.º 5
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;
     }
 }