Created
February 11, 2018 18:51
-
-
Save kutliev/bc994fc6b28da8ec13702967b9bda9c3 to your computer and use it in GitHub Desktop.
spot class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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