chore: release v021.4
This commit is contained in:
@@ -1184,6 +1184,8 @@ export namespace extsvc {
|
||||
|
||||
export class ServiceConfig {
|
||||
api_key: string;
|
||||
url: string;
|
||||
station_id: string;
|
||||
email: string;
|
||||
username: string;
|
||||
password: string;
|
||||
@@ -1206,6 +1208,8 @@ export namespace extsvc {
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.api_key = source["api_key"];
|
||||
this.url = source["url"];
|
||||
this.station_id = source["station_id"];
|
||||
this.email = source["email"];
|
||||
this.username = source["username"];
|
||||
this.password = source["password"];
|
||||
@@ -1228,6 +1232,7 @@ export namespace extsvc {
|
||||
lotw: ServiceConfig;
|
||||
hrdlog: ServiceConfig;
|
||||
eqsl: ServiceConfig;
|
||||
cloudlog: ServiceConfig;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new ExternalServices(source);
|
||||
@@ -1240,6 +1245,7 @@ export namespace extsvc {
|
||||
this.lotw = this.convertValues(source["lotw"], ServiceConfig);
|
||||
this.hrdlog = this.convertValues(source["hrdlog"], ServiceConfig);
|
||||
this.eqsl = this.convertValues(source["eqsl"], ServiceConfig);
|
||||
this.cloudlog = this.convertValues(source["cloudlog"], ServiceConfig);
|
||||
}
|
||||
|
||||
convertValues(a: any, classs: any, asMap: boolean = false): any {
|
||||
|
||||
Reference in New Issue
Block a user