Files
openaccounting-web/src/app/shared/price.ts
Patrick Nagurny 5ff09d328d initial commit
2018-10-19 11:28:08 -04:00

17 lines
466 B
TypeScript

export class Price {
id: string;
currency: string;
date: Date;
inserted: Date;
updated: Date;
price: number;
constructor(options: any = {}) {
this.id = options.id;
this.currency = options.currency;
this.date = options.date ? new Date(options.date) : null;
this.inserted = options.inserted ? new Date(options.inserted) : null;
this.updated = options.updated ? new Date(options.updated) : null;
this.price = options.price;
}
}