import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { BaseService } from '../../base/base-service';

@Injectable({
    providedIn: 'root'
})
export class CheckAvailableRoomAndPeriodService extends BaseService {

    constructor(
        public http: HttpClient
    ) {
        super('/v1/register/check_available_room_and_period', http);
    }

    checkAvalroom(data){
        return this.http.post(`${this.fullUrl}/${data.testing_information_uid}/${data.subject_uid}/${data.testing_date}`, data)
    }

    checkAvalroomWithQuery(data,query,date){
        return this.http.post(`${this.fullUrl}/${data.testing_information_uid}/${data.subject_uid}/${date}/?${query}`, data)
    }
}
