Skip to content

Instantly share code, notes, and snippets.

@kutliev
Created February 11, 2018 18:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kutliev/bc994fc6b28da8ec13702967b9bda9c3 to your computer and use it in GitHub Desktop.
Save kutliev/bc994fc6b28da8ec13702967b9bda9c3 to your computer and use it in GitHub Desktop.
spot class
import { Entity } from './entity'
import { SpotEvent } from './spotevent'
export class Spot extends Entity {
floor: string;
type: string;
customer: string;
payments: SpotEvent[];
cleanings: SpotEvent[];
maintenances: SpotEvent[];
constructor(id: string, title: string, slug: string, content: string, floor: string, type: string, customer: string) {
super(id, title, slug, content);
this.floor = floor;
this.type = type;
this.customer = customer;
this.payments = [];
this.cleanings = [];
this.maintenances = [];
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment