28 lines
668 B
TypeScript
Executable File
28 lines
668 B
TypeScript
Executable File
export namespace service {
|
|
|
|
export class MacAddress {
|
|
Id: string;
|
|
Prefix: string;
|
|
VendorName: string;
|
|
Private: boolean;
|
|
BlockType: string;
|
|
LastUpdate: string;
|
|
|
|
static createFrom(source: any = {}) {
|
|
return new MacAddress(source);
|
|
}
|
|
|
|
constructor(source: any = {}) {
|
|
if ('string' === typeof source) source = JSON.parse(source);
|
|
this.Id = source["Id"];
|
|
this.Prefix = source["Prefix"];
|
|
this.VendorName = source["VendorName"];
|
|
this.Private = source["Private"];
|
|
this.BlockType = source["BlockType"];
|
|
this.LastUpdate = source["LastUpdate"];
|
|
}
|
|
}
|
|
|
|
}
|
|
|