﻿using System.Collections.Generic;
using galaxy.core.habbolib.rooms;

namespace galaxy.core.communication.packets.outgoing.catalog
{
    class PromotableRoomsComposer : ServerPacket
    {
        public PromotableRoomsComposer(ICollection<roomData> Rooms)
            : base(ServerPacketHeader.PromotableRoomsMessageComposer)
        {
            base.WriteBoolean(true);
            base.WriteInteger(Rooms.Count);//Count

            foreach (roomData Data in Rooms)
            {
                base.WriteInteger(Data.id);
                base.WriteString(Data.name);
                base.WriteBoolean(false);
            }
        }
    }
}