Implement creating food
This commit is contained in:
@@ -92,6 +92,22 @@ export namespace main {
|
||||
return a;
|
||||
}
|
||||
}
|
||||
export class WailsPer100 {
|
||||
data: number;
|
||||
success: boolean;
|
||||
error?: string;
|
||||
|
||||
static createFrom(source: any = {}) {
|
||||
return new WailsPer100(source);
|
||||
}
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.data = source["data"];
|
||||
this.success = source["success"];
|
||||
this.error = source["error"];
|
||||
}
|
||||
}
|
||||
export class settings {
|
||||
foodDaysLookback: number;
|
||||
foodAggregatedDaysLookback: number;
|
||||
|
||||
Reference in New Issue
Block a user