src/app/classes/price-list.ts
Price list class
Properties |
constructor(user: string)
|
||||||||
Defined in src/app/classes/price-list.ts:14
|
||||||||
Parameters :
|
downloadItems |
downloadItems:
|
Type : DownloadPrice[]
|
Defined in src/app/classes/price-list.ts:10
|
Download prices |
printingHouseItems |
printingHouseItems:
|
Type : PrintingHousePrices[]
|
Defined in src/app/classes/price-list.ts:12
|
Printing house prices |
user |
user:
|
Type : string
|
Defined in src/app/classes/price-list.ts:14
|
User UID |
import { DownloadPrice } from '../interfaces/download-price';
import { PrintingHousePrices } from '../interfaces/printing-house-prices';
/**
* Price list class
* @author Daniel Sogl
*/
export class PriceList {
/** Download prices */
downloadItems: DownloadPrice[];
/** Printing house prices */
printingHouseItems: PrintingHousePrices[];
/** User UID */
user: string;
constructor(user: string) {
this.user = user;
this.downloadItems = [
{
name: 'XXS (max. 400px)',
minPrice: 3.5,
price: 3.5
},
{
name: 'XS (max. 600px)',
minPrice: 3.5,
price: 3.5
},
{
name: 'S (max. 800px)',
minPrice: 5,
price: 5
},
{
name: 'M (max. 1200px)',
minPrice: 8,
price: 8
},
{
name: 'L (max. 3000px)',
minPrice: 13,
price: 13
},
{
name: 'XL (max. 5000px)',
minPrice: 18,
price: 18
},
{
name: 'Original',
minPrice: 20,
price: 20
}
];
}
}