File

src/app/classes/price-list.ts

Description

Price list class

Example

Index

Properties

Constructor

constructor(user: string)
Parameters :
Name Type Optional Description
user string

Properties

downloadItems
downloadItems: DownloadPrice[]
Type : DownloadPrice[]

Download prices

printingHouseItems
printingHouseItems: PrintingHousePrices[]
Type : PrintingHousePrices[]

Printing house prices

user
user: string
Type : string

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
      }
    ];
  }
}

results matching ""

    No results matching ""