Migrate the rest of everything from rowid to id
This commit is contained in:
@@ -33,7 +33,7 @@ export namespace main {
|
||||
}
|
||||
}
|
||||
export class Food {
|
||||
rowid: number;
|
||||
id: number;
|
||||
date: string;
|
||||
food: string;
|
||||
description: string;
|
||||
@@ -47,7 +47,7 @@ export namespace main {
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.rowid = source["rowid"];
|
||||
this.id = source["id"];
|
||||
this.date = source["date"];
|
||||
this.food = source["food"];
|
||||
this.description = source["description"];
|
||||
@@ -57,7 +57,7 @@ export namespace main {
|
||||
}
|
||||
}
|
||||
export class FoodSearch {
|
||||
rowid: number;
|
||||
id: number;
|
||||
date: string;
|
||||
food: string;
|
||||
description: string;
|
||||
@@ -72,7 +72,7 @@ export namespace main {
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.rowid = source["rowid"];
|
||||
this.id = source["id"];
|
||||
this.date = source["date"];
|
||||
this.food = source["food"];
|
||||
this.description = source["description"];
|
||||
@@ -267,7 +267,7 @@ export namespace main {
|
||||
}
|
||||
}
|
||||
export class Weight {
|
||||
rowid: number;
|
||||
id: number;
|
||||
date: string;
|
||||
weight: number;
|
||||
|
||||
@@ -277,7 +277,7 @@ export namespace main {
|
||||
|
||||
constructor(source: any = {}) {
|
||||
if ('string' === typeof source) source = JSON.parse(source);
|
||||
this.rowid = source["rowid"];
|
||||
this.id = source["id"];
|
||||
this.date = source["date"];
|
||||
this.weight = source["weight"];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user