-
Notifications
You must be signed in to change notification settings - Fork 3
/
Locations.ts
37 lines (26 loc) · 858 Bytes
/
Locations.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import { IStatusLabel } from '../Interfaces';
export class Locations {
// public id: number;
public id?: number;
public name?: string;
public type?: string;
public color?: string;
public show_in_nav?: boolean;
public assets_count?: number;
public notes?: string;
public created_at?: any;
public updated_at?: any;
public available_actions?: any;
constructor(statuslabel?: IStatusLabel) {
this.id = statuslabel!.id;
this.name = statuslabel!.name;
this.type = statuslabel!.type;
this.color = statuslabel!.color;
this.show_in_nav = statuslabel!.show_in_nav;
this.assets_count = statuslabel!.assets_count;
this.notes = statuslabel!.notes;
this.created_at = statuslabel!.created_at;
this.updated_at = statuslabel!.updated_at;
this.available_actions = statuslabel!.available_actions;
}
}