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 = '';
        this.roomLimit = 0;
        this.rDesc = '';
        console.log("sssssssssssss",init)
    }
}

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