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

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

    constructor(
        public http: HttpClient
    ) {
        super('/v1/information/room_invigilators', http)
    }

    getToday(){
        var todaysDate = new Date();
        return this.http.get(`${this.fullUrl}?start_time=${todaysDate}`);
    }

    getByTestInfoID(id){
        return this.http.get(`${this.fullUrl}_by_testing_information/${id}`);
    }

    putMany(form){
        return this.http.put(`${this.prefix}/v1/information/list_room_invigilators`,form);
    }
}
