22 lines
449 B
TypeScript
22 lines
449 B
TypeScript
import { Section } from './section';
|
|
|
|
export class Device {
|
|
id: string | undefined;
|
|
name: string;
|
|
enabled: boolean;
|
|
section: Section;
|
|
creationDate: string;
|
|
lastUser: string;
|
|
lastDate?: string;
|
|
|
|
public constructor(init?: Partial<Device>) {
|
|
this.id = undefined;
|
|
this.name = '';
|
|
this.enabled = false;
|
|
this.section = new Section();
|
|
this.creationDate = '';
|
|
this.lastUser = '';
|
|
Object.assign(this, init);
|
|
}
|
|
}
|