mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-01-19 05:27:57 +00:00
20 lines
389 B
TypeScript
Executable File
20 lines
389 B
TypeScript
Executable File
export namespace main {
|
|
|
|
export class findResult {
|
|
total: number;
|
|
results: any;
|
|
|
|
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"];
|
|
}
|
|
}
|
|
|
|
}
|
|
|