update
This commit is contained in:
@@ -4,6 +4,8 @@ export namespace adif {
|
||||
total: number;
|
||||
imported: number;
|
||||
skipped: number;
|
||||
duplicates: number;
|
||||
duplicate_samples: string[];
|
||||
errors: string[];
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
@@ -15,6 +17,8 @@ export namespace adif {
|
||||
this.total = source["total"];
|
||||
this.imported = source["imported"];
|
||||
this.skipped = source["skipped"];
|
||||
this.duplicates = source["duplicates"];
|
||||
this.duplicate_samples = source["duplicate_samples"];
|
||||
this.errors = source["errors"];
|
||||
}
|
||||
}
|
||||
@@ -266,6 +270,24 @@ export namespace main {
|
||||
}
|
||||
}
|
||||
|
||||
export class RotatorSettings {
|
||||
enabled: boolean;
|
||||
host: string;
|
||||
port: number;
|
||||
has_elevation: boolean;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new RotatorSettings(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.enabled = source["enabled"];
|
||||
this.host = source["host"];
|
||||
this.port = source["port"];
|
||||
this.has_elevation = source["has_elevation"];
|
||||
}
|
||||
}
|
||||
export class StartupStatus {
|
||||
ok: boolean;
|
||||
err: string;
|
||||
|
||||
Reference in New Issue
Block a user