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

export class RoomDetail {
    Id?: number;
    room: Room;
    userName: string;
    sDate: string;
    eDate: string;
    sTime: {
        hour: number;
        minute: number;
        second: number;
    };
    eTime: {
        hour: number;
        minute: number;
        second: number;
    };
    rStatus: string;
    rTelephone: string;
    email: string;
    Remark: string;
    constructor(init?: RoomDetail) {
        Object.assign(this, init);
        this.Id = 1;
        this.room = this.room;
        this.userName = '';
        this.sDate = '';
        this.eDate = '';
        this.rStatus = '';
        this.rTelephone = undefined;
        this.email = undefined;
        this.Remark = '';
    }
}

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 = '';
    }
}