Display concerts with card views on "All concerts" page, adding image property for tours
This commit is contained in:
@@ -12,7 +12,7 @@ export class BandModel {
|
||||
logo: string
|
||||
ratings: Array<RatingModel>
|
||||
members: Array<MemberModel>
|
||||
genre: {
|
||||
genres: {
|
||||
name: string
|
||||
}
|
||||
}
|
||||
@@ -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
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,6 @@
|
||||
import { LocationModel } from "./locationModel"
|
||||
|
||||
export class ShowModel {
|
||||
export class ConcertModel {
|
||||
id: number
|
||||
inStock: number
|
||||
date: string
|
||||
@@ -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
|
||||
}
|
||||
@@ -1,4 +1,3 @@
|
||||
import { AccountModel } from "./accountModel"
|
||||
import { BandModel } from "./bandModel"
|
||||
|
||||
export class RatingModel {
|
||||
|
||||
@@ -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>
|
||||
}
|
||||
Reference in New Issue
Block a user