package com.eu.habbo.messages.outgoing.rooms;

import com.eu.habbo.habbohotel.rooms.RoomRightLevels;
import com.eu.habbo.messages.ServerMessage;
import com.eu.habbo.messages.outgoing.MessageComposer;
import com.eu.habbo.messages.outgoing.Outgoing;

public class RoomRightsComposer extends MessageComposer {
    private final RoomRightLevels type;

    public RoomRightsComposer(RoomRightLevels type) {
        this.type = type;
    }

    @Override
    protected ServerMessage composeInternal() {
        this.response.init(Outgoing.RoomRightsComposer);
        this.response.appendInt(this.type.level);
        return this.response;
    }

    public RoomRightLevels getType() {
        return type;
    }
}
