Tickets moveable to basket, Basket shows tickets, removable

This commit is contained in:
2024-10-05 20:23:13 +02:00
parent a676ce3d86
commit c54e6f3743
21 changed files with 301 additions and 334 deletions

View File

@@ -1,12 +1,14 @@
import { ConcertModel } from "../acts/concertModel"
import { SeatModel } from "../locations/seatModel"
export class BasketItemModel {
id: number = -1
quantity: number = 1
concert: ConcertModel = new ConcertModel()
seats: Array<SeatModel> = []
price: number
constructor(quantity: number, concert: ConcertModel) {
this.quantity = quantity
constructor(concert: ConcertModel, seat: SeatModel, price: number) {
this.concert = concert
this.seats = [ seat ]
this.price = price
}
}

View File

@@ -1,14 +1,17 @@
import { ConcertModel } from "../acts/concertModel";
import { SeatModel } from "../locations/seatModel";
import { SeatRowModel } from "../locations/seatRowModel";
export class SelectedSeatModel {
seat: SeatModel
seatRow: number
seatGroupName: string
concert: ConcertModel
price: number
constructor(seat: SeatModel, seatRow: number, seatGroupName: string) {
constructor(seat: SeatModel, seatRow: number, seatGroupName: string, concert: ConcertModel) {
this.seat = seat
this.seatRow = seatRow
this.seatGroupName = seatGroupName
this.concert = concert
}
}