-
Notifications
You must be signed in to change notification settings - Fork 3
/
Categories.ts
51 lines (35 loc) · 1.3 KB
/
Categories.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import { ICategories } from '../Interfaces';
export class Categories {
public id?: number;
public name?: string;
public image?: string;
public category_type?: string;
public eula?: boolean;
public checkin_email?: boolean;
public require_acceptance?: boolean;
public assets_count?: number;
public accessories_count?: number;
public consumables_count?: number;
public components_count?: number;
public licenses_count?: number;
public created_at?: any;
public avaible_actions?: any;
public updated_at?: any;
constructor(categories?: ICategories) {
this.id = categories!.id;
this.name = categories!.name;
this.image = categories!.image;
this.category_type = categories!.category_type;
this.eula = categories!.eula;
this.checkin_email = categories!.checkin_email;
this.require_acceptance = categories!.require_acceptance;
this.assets_count = categories!.assets_count;
this.accessories_count = categories!.accessories_count;
this.consumables_count = categories!.consumables_count;
this.components_count = categories!.components_count;
this.licenses_count = categories!.licenses_count;
this.created_at = categories!.created_at;
this.updated_at = categories!.updated_at;
this.avaible_actions = categories!.avaible_actions;
}
}