2020-10-11 05:26:29 +00:00
|
|
|
import { Section } from './section';
|
2019-07-06 08:16:18 +00:00
|
|
|
|
|
|
|
export class Device {
|
2020-11-22 04:43:37 +00:00
|
|
|
id: string | undefined;
|
2019-07-06 08:16:18 +00:00
|
|
|
name: string;
|
2020-10-27 11:29:24 +00:00
|
|
|
enabled: boolean;
|
2019-07-06 08:16:18 +00:00
|
|
|
section: Section;
|
2020-10-27 11:29:24 +00:00
|
|
|
creationDate: string;
|
|
|
|
lastUser: string;
|
|
|
|
lastDate?: string;
|
|
|
|
|
|
|
|
public constructor(init?: Partial<Device>) {
|
2020-11-22 04:43:37 +00:00
|
|
|
this.id = undefined;
|
|
|
|
this.name = '';
|
|
|
|
this.enabled = false;
|
|
|
|
this.section = new Section();
|
|
|
|
this.creationDate = '';
|
|
|
|
this.lastUser = '';
|
2020-10-27 11:29:24 +00:00
|
|
|
Object.assign(this, init);
|
|
|
|
}
|
2019-07-06 08:16:18 +00:00
|
|
|
}
|