mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-16 21:14:05 +00:00
Save queries
This commit is contained in:
@ -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"];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user