import { RoomDetail } from "./RoomDetail.model"
export interface Room {
    rId: number;
    rName: string;
    rType : string;
    rPic: string;
    roomLimit: number;
    rDesc: string;
}
export class MyRoom implements Room{
    rId: number;
    rName: string;
    rType : string;
    rPic: string;
    roomLimit: number;
    rDesc: string;
  static rName: any;
    constructor(init?: Room) {
        // Object.assign(this, init);
        this.rId = init?.rId!;
        this.rName = init?.rName!;
        this.rPic = 'assets/img/nopic.jpg';
        this.roomLimit = 0;
        this.rDesc = '';
      
    }
}

export interface SearchRoomModel {
    sdate: string;
    edate: string;
    stime: string;
    etime: string;
    roomlimit: number;
}

export class SearchRoomModel {
    constructor(init?: SearchRoomModel) {
        Object.assign(this, init);
        this.sdate = '',
        this.edate = '',
        this.stime = '',
        this.etime = '',
        this.roomlimit = 0;
    }
}