using System;
using System.Linq;
using System.Text;
using System.Collections;
using System.Collections.Generic;

namespace Plus.Communication.Packets.Outgoing.Navigator
{
    class FavouritesComposer : ServerPacket
    {
        public FavouritesComposer(ArrayList favouriteIDs)
            : base(ServerPacketHeader.FavouritesMessageComposer)
        {
            base.WriteInteger(50);
            base.WriteInteger(favouriteIDs.Count);

            foreach (int Id in favouriteIDs.ToArray())
            {
                base.WriteInteger(Id);
            }
        }
    }
}
