public void MergeFrom(FriendshipData other)
 {
     if (other == null)
     {
         return;
     }
     if (other.friendshipLevelData_ != null)
     {
         if (friendshipLevelData_ == null)
         {
             friendshipLevelData_ = new global::POGOProtos.Data.Friends.FriendshipLevelData();
         }
         FriendshipLevelData.MergeFrom(other.FriendshipLevelData);
     }
     giftboxDetails_.Add(other.giftboxDetails_);
     if (other.Codename.Length != 0)
     {
         Codename = other.Codename;
     }
     if (other.Nickname.Length != 0)
     {
         Nickname = other.Nickname;
     }
     _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields);
 }
Пример #2
0
 public void MergeFrom(Trading other)
 {
     if (other == null)
     {
         return;
     }
     if (other.State != 0)
     {
         State = other.State;
     }
     if (other.ExpirationMs != 0UL)
     {
         ExpirationMs = other.ExpirationMs;
     }
     if (other.player_ != null)
     {
         if (player_ == null)
         {
             player_ = new global::POGOProtos.Data.Trading.TradingPlayer();
         }
         Player.MergeFrom(other.Player);
     }
     if (other.friend_ != null)
     {
         if (friend_ == null)
         {
             friend_ = new global::POGOProtos.Data.Trading.TradingPlayer();
         }
         Friend.MergeFrom(other.Friend);
     }
     if (other.TradingS2CellId != 0L)
     {
         TradingS2CellId = other.TradingS2CellId;
     }
     if (other.TransactionLog.Length != 0)
     {
         TransactionLog = other.TransactionLog;
     }
     if (other.friendshipLevelData_ != null)
     {
         if (friendshipLevelData_ == null)
         {
             friendshipLevelData_ = new global::POGOProtos.Data.Friends.FriendshipLevelData();
         }
         FriendshipLevelData.MergeFrom(other.FriendshipLevelData);
     }
     if (other.IsSpecialTrading != false)
     {
         IsSpecialTrading = other.IsSpecialTrading;
     }
     if (other.preTradingFriendshipLevel_ != null)
     {
         if (preTradingFriendshipLevel_ == null)
         {
             preTradingFriendshipLevel_ = new global::POGOProtos.Data.Friends.FriendshipLevelData();
         }
         PreTradingFriendshipLevel.MergeFrom(other.PreTradingFriendshipLevel);
     }
     _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: {
                    result_ = (global::POGOProtos.Networking.Responses.Social.OpenGiftResponse.Types.Result)input.ReadEnum();
                    break;
                }

                case 18: {
                    if (items_ == null)
                    {
                        items_ = new global::POGOProtos.Inventory.Loot();
                    }
                    input.ReadMessage(items_);
                    break;
                }

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

                case 34: {
                    if (updatedFriendshipData_ == null)
                    {
                        updatedFriendshipData_ = new global::POGOProtos.Data.Friends.FriendshipLevelData();
                    }
                    input.ReadMessage(updatedFriendshipData_);
                    break;
                }

                case 42: {
                    if (friendProfile_ == null)
                    {
                        friendProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile();
                    }
                    input.ReadMessage(friendProfile_);
                    break;
                }
                }
            }
        }
 public void MergeFrom(OpenGiftResponse other)
 {
     if (other == null)
     {
         return;
     }
     if (other.Result != 0)
     {
         Result = other.Result;
     }
     if (other.items_ != null)
     {
         if (items_ == null)
         {
             items_ = new global::POGOProtos.Inventory.Loot();
         }
         Items.MergeFrom(other.Items);
     }
     if (other.eggPokemon_ != null)
     {
         if (eggPokemon_ == null)
         {
             eggPokemon_ = new global::POGOProtos.Data.PokemonData();
         }
         EggPokemon.MergeFrom(other.EggPokemon);
     }
     if (other.updatedFriendshipData_ != null)
     {
         if (updatedFriendshipData_ == null)
         {
             updatedFriendshipData_ = new global::POGOProtos.Data.Friends.FriendshipLevelData();
         }
         UpdatedFriendshipData.MergeFrom(other.UpdatedFriendshipData);
     }
     if (other.friendProfile_ != null)
     {
         if (friendProfile_ == null)
         {
             friendProfile_ = new global::POGOProtos.Data.Player.PlayerPublicProfile();
         }
         FriendProfile.MergeFrom(other.FriendProfile);
     }
     _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 (friendshipLevelData_ == null)
                    {
                        friendshipLevelData_ = new global::POGOProtos.Data.Friends.FriendshipLevelData();
                    }
                    input.ReadMessage(friendshipLevelData_);
                    break;
                }

                case 18: {
                    giftboxDetails_.AddEntriesFrom(input, _repeated_giftboxDetails_codec);
                    break;
                }

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

                case 34: {
                    Nickname = input.ReadString();
                    break;
                }
                }
            }
        }
Пример #6
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: {
                    state_ = (global::POGOProtos.Data.Trading.Trading.Types.TradingState)input.ReadEnum();
                    break;
                }

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

                case 26: {
                    if (player_ == null)
                    {
                        player_ = new global::POGOProtos.Data.Trading.TradingPlayer();
                    }
                    input.ReadMessage(player_);
                    break;
                }

                case 34: {
                    if (friend_ == null)
                    {
                        friend_ = new global::POGOProtos.Data.Trading.TradingPlayer();
                    }
                    input.ReadMessage(friend_);
                    break;
                }

                case 40: {
                    TradingS2CellId = input.ReadInt64();
                    break;
                }

                case 50: {
                    TransactionLog = input.ReadString();
                    break;
                }

                case 58: {
                    if (friendshipLevelData_ == null)
                    {
                        friendshipLevelData_ = new global::POGOProtos.Data.Friends.FriendshipLevelData();
                    }
                    input.ReadMessage(friendshipLevelData_);
                    break;
                }

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

                case 74: {
                    if (preTradingFriendshipLevel_ == null)
                    {
                        preTradingFriendshipLevel_ = new global::POGOProtos.Data.Friends.FriendshipLevelData();
                    }
                    input.ReadMessage(preTradingFriendshipLevel_);
                    break;
                }
                }
            }
        }