first
This commit is contained in:
Executable
+19
@@ -0,0 +1,19 @@
|
||||
export namespace main {
|
||||
|
||||
export class DeviceResponse {
|
||||
status: string;
|
||||
frequency: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new DeviceResponse(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.status = source["status"];
|
||||
this.frequency = source["frequency"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user