Display concerts with card views on "All concerts" page, adding image property for tours

This commit is contained in:
2024-09-28 21:18:25 +02:00
parent 8d0b141217
commit 0616409f14
49 changed files with 454 additions and 219 deletions

View File

@@ -12,7 +12,7 @@ export class BandModel {
logo: string
ratings: Array<RatingModel>
members: Array<MemberModel>
genre: {
genres: {
name: string
}
}

View File

@@ -1,12 +1,12 @@
import { ShowModel } from "./showModel"
import { ConcertModel } from "./concertModel"
export class BasketItemModel {
id: number = -1
quantity: number = 1
product: ShowModel = new ShowModel()
concert: ConcertModel = new ConcertModel()
constructor(quantity: number, product: ShowModel) {
constructor(quantity: number, concert: ConcertModel) {
this.quantity = quantity
this.product = product
this.concert = concert
}
}

View File

@@ -1,6 +1,6 @@
import { LocationModel } from "./locationModel"
export class ShowModel {
export class ConcertModel {
id: number
inStock: number
date: string

View File

@@ -1,8 +1,8 @@
import { ShowModel } from "./showModel"
import { ConcertModel } from "./concertModel"
export class OrderItemModel {
orderId: number = -1
quantity: number = 1
orderPrice: number = 0
product: ShowModel
product: ConcertModel
}

View File

@@ -1,4 +1,3 @@
import { AccountModel } from "./accountModel"
import { BandModel } from "./bandModel"
export class RatingModel {

View File

@@ -1,10 +1,11 @@
import { BandModel } from "./bandModel"
import { ShowModel } from "./showModel"
import { ConcertModel } from "./concertModel"
export class TourModel {
id: number
name: string
offered: boolean
band: BandModel
shows: Array<ShowModel>
image: string
shows: Array<ConcertModel>
}