﻿using galaxy.core.habbolib.groups;

namespace galaxy.core.communication.packets.outgoing.groups
{
    class GroupFurniSettingsComposer : ServerPacket
    {
        public GroupFurniSettingsComposer(Group Group, int ItemId, int userId)
            : base(ServerPacketHeader.GroupFurniSettingsMessageComposer)
        {
            base.WriteInteger(ItemId);//Item Id
            base.WriteInteger(Group.Id);//Group Id?
            base.WriteString(Group.Name);
            base.WriteInteger(Group.roomId);//roomId
            base.WriteBoolean(Group.IsMember(userId));//Member?
            base.WriteBoolean(Group.ForumEnabled);//Has a forum
        }
    }
}