import { Room } from "./rooms.model";

export class RoomDetail {
    id?: number;
    room: Room;
    userName: string;
    sDate: string;
    eDate: string;
    sTime: string;
    eTime: string;
    rStatus: number;
    rTelephone: string;
    email: string;
    remark: string;
    allDay: boolean;
    constructor(init?: RoomDetail) {
        Object.assign(this, init);
        this.id = 1;
        this.room = this.room;
        this.userName = '';
        this.sDate = '';
        this.eDate = '';
        this.rStatus = 0;
        this.rTelephone = '';
        this.email = '';
        this.remark = '';
        this.allDay = true;
    }
}

export interface SearchRoomDetailModel {
    sDate: string;
    eDate: string;
    sTime: string;
    eTime: string;
}

export class SearchRoomDetailModel {
    constructor(init?: SearchRoomDetailModel) {
        Object.assign(this, init);
        this.sDate = '',
            this.eDate = '',
            this.sTime = '',
            this.eTime = '';
    }
}