import {Injectable} from "@angular/core"; import ApiService, {AvailableVersion} from "@api/api.service"; import {LectureHallResponse} from "@api/v1/lectureHallResponse"; import {LectureHallDetailsResponse} from "@api/v1/lectureHallDetailsResponse"; @Injectable() export class LectureHallService extends ApiService { protected basePath = 'LectureHall/'; protected version = AvailableVersion.v1; public getLectureHalls() { return this.get(); } public getById(id: number) { return this.get(id.toString()); } public getByCampus(id: number) { return this.get('GetByCampus/' + id.toString()); } }