feat: upload qrz.com clublog and lotw manually
This commit is contained in:
@@ -191,6 +191,11 @@ export namespace extsvc {
|
||||
password: string;
|
||||
callsign: string;
|
||||
force_station_callsign: string;
|
||||
tqsl_path: string;
|
||||
station_location: string;
|
||||
key_password: string;
|
||||
upload_flag: string;
|
||||
write_log: boolean;
|
||||
auto_upload: boolean;
|
||||
upload_mode: string;
|
||||
|
||||
@@ -205,6 +210,11 @@ export namespace extsvc {
|
||||
this.password = source["password"];
|
||||
this.callsign = source["callsign"];
|
||||
this.force_station_callsign = source["force_station_callsign"];
|
||||
this.tqsl_path = source["tqsl_path"];
|
||||
this.station_location = source["station_location"];
|
||||
this.key_password = source["key_password"];
|
||||
this.upload_flag = source["upload_flag"];
|
||||
this.write_log = source["write_log"];
|
||||
this.auto_upload = source["auto_upload"];
|
||||
this.upload_mode = source["upload_mode"];
|
||||
}
|
||||
@@ -212,6 +222,7 @@ export namespace extsvc {
|
||||
export class ExternalServices {
|
||||
qrz: ServiceConfig;
|
||||
clublog: ServiceConfig;
|
||||
lotw: ServiceConfig;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new ExternalServices(source);
|
||||
@@ -221,6 +232,7 @@ export namespace extsvc {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.qrz = this.convertValues(source["qrz"], ServiceConfig);
|
||||
this.clublog = this.convertValues(source["clublog"], ServiceConfig);
|
||||
this.lotw = this.convertValues(source["lotw"], ServiceConfig);
|
||||
}
|
||||
|
||||
convertValues(a: any, classs: any, asMap: boolean = false): any {
|
||||
@@ -241,6 +253,25 @@ export namespace extsvc {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
|
||||
export class StationLocation {
|
||||
name: string;
|
||||
call: string;
|
||||
grid: string;
|
||||
dxcc: number;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new StationLocation(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.name = source["name"];
|
||||
this.call = source["call"];
|
||||
this.grid = source["grid"];
|
||||
this.dxcc = source["dxcc"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -1087,6 +1118,30 @@ export namespace qso {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
export class UploadRow {
|
||||
id: number;
|
||||
qso_date: string;
|
||||
callsign: string;
|
||||
band: string;
|
||||
mode: string;
|
||||
country: string;
|
||||
status: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new UploadRow(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.id = source["id"];
|
||||
this.qso_date = source["qso_date"];
|
||||
this.callsign = source["callsign"];
|
||||
this.band = source["band"];
|
||||
this.mode = source["mode"];
|
||||
this.country = source["country"];
|
||||
this.status = source["status"];
|
||||
}
|
||||
}
|
||||
export class WorkedEntry {
|
||||
id: number;
|
||||
// Go type: time
|
||||
|
||||
Reference in New Issue
Block a user