Hilfe was ist diese converter funktion, hilfe. Sonst bisschen Kino übersicht 🚀

This commit is contained in:
Marcel-Anker
2025-11-02 18:40:59 +01:00
parent 5addba879a
commit c2d5868dba
6 changed files with 32 additions and 11 deletions

View File

@@ -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}`);
}
}