tns-template-master-detail-kinvey-ng
Version:
Master-detail interface to display collection of items from Kinvey and inspect and edit selected item properties.
28 lines (26 loc) • 785 B
text/typescript
export class Car {
id: string;
name: string;
hasAC: boolean;
seats: string;
luggage: number;
class: string;
doors: number;
price: number;
transmission: string;
imageUrl: string;
imageStoragePath: string;
constructor(options: any) {
this.id = options.id;
this.name = options.name;
this.hasAC = options.hasAC;
this.seats = options.seats;
this.luggage = Number(options.luggage);
this.class = options.class;
this.doors = Number(options.doors);
this.price = Number(options.price);
this.transmission = options.transmission;
this.imageUrl = encodeURI(options.imageUrl);
this.imageStoragePath = options.imageStoragePath;
}
}