1
0
mirror of https://github.com/garraflavatra/rolens.git synced 2025-07-16 21:14:05 +00:00

Save queries

This commit is contained in:
2023-02-15 17:00:53 +01:00
parent 3291bc845f
commit 5f358885a3
12 changed files with 419 additions and 37 deletions

View File

@ -26,6 +26,20 @@ export namespace app {
this.logDirectory = source["logDirectory"];
}
}
export class QueryResult {
total: number;
results: string[];
static createFrom(source: any = {}) {
return new QueryResult(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.total = source["total"];
this.results = source["results"];
}
}
export class Settings {
defaultLimit: number;
defaultSort: string;
@ -44,20 +58,6 @@ export namespace app {
this.defaultExportDirectory = source["defaultExportDirectory"];
}
}
export class findResult {
total: number;
results: string[];
static createFrom(source: any = {}) {
return new findResult(source);
}
constructor(source: any = {}) {
if ('string' === typeof source) source = JSON.parse(source);
this.total = source["total"];
this.results = source["results"];
}
}
}