/*
Copyright (C) 2005 David Green <green@couchpotato.net>
All Rights Reserved.

This file is part of Aelfengard.

Aelfengard is proprietary software. You may not redistribute it without
prior written permission from the copyright holder.
*/

package common.clientevent;

import common.PubRoom;
import common.RoomType;

public class EditRoomClientEvent extends ClientEvent {

    private static final long serialVersionUID = 1L;
    
    private final PubRoom room;
    private final String newName;
    private final String newDesc;
    private final RoomType newType;
    private final String newImage;
    private final Boolean newPostOffice;
    private final byte[] uploadData;
    
    public EditRoomClientEvent(PubRoom room, 
                               String newName, 
                               String newDesc,
                               RoomType newType,
                               String newImage,
                               Boolean newPostOffice,
                               byte[] uploadData) {
        super(ClientEventType.EDIT_ROOM);
        this.room = room;
        this.newName = newName;
        this.newDesc = newDesc;
        this.newType = newType;
        this.newImage = newImage;
        this.newPostOffice = newPostOffice;
        this.uploadData = uploadData;
    }
    
    public PubRoom getRoom() {
        return room;
    }
    
    public String getNewName() {
        return newName;
    }
    
    public String getNewDescription() {
        return newDesc;
    }

    public RoomType getNewType() {
        return newType;
    }

    public String getNewImage() {
        return newImage;
    }
    
    public Boolean getNewPostOffice() {
        return newPostOffice;
    }
    
    public byte[] getUploadData() {
        return uploadData;
    }
    
}