Hilfe was ist diese converter funktion, hilfe. Sonst bisschen Kino übersicht 🚀
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { Kinosaal, Vorstellung } from '@infinimotion/model-frontend';
|
||||
import {Kinosaal, Sitzplatz, Vorstellung} from '@infinimotion/model-frontend';
|
||||
import { HttpClient } from "@angular/common/http";
|
||||
import { inject, Injectable } from "@angular/core";
|
||||
import { Observable } from "rxjs";
|
||||
@@ -65,4 +65,13 @@ export class HttpService {
|
||||
deletePerformace(id: number): Observable<void> {
|
||||
return this.http.delete<void>(`${this.baseUrl}vorstellung/${id}`);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Show-Seats APIs*/
|
||||
|
||||
/* GET /api/show-seats/{show} */
|
||||
getSeatsByShowId(show: number): Observable<{seats:Sitzplatz[], reserved:Sitzplatz[], booked:Sitzplatz[]}> {
|
||||
return this.http.get<{seats:Sitzplatz[], reserved:Sitzplatz[], booked:Sitzplatz[]}>(`${this.baseUrl}show-seats/${show}`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user