WT 1.1.24+2 Weight calculation
This commit is contained in:
@@ -27,6 +27,7 @@ class Customer {
|
||||
DateTime? syncedDate;
|
||||
DateTime? trialDate;
|
||||
String? firebaseRegToken;
|
||||
String? lang;
|
||||
|
||||
LinkedHashMap<String, CustomerProperty> properties = LinkedHashMap();
|
||||
|
||||
@@ -70,6 +71,7 @@ class Customer {
|
||||
this.trainer = json['trainer'];
|
||||
this.firebaseUid = json['firebaseUid'];
|
||||
this.firebaseRegToken = json['firebaseRegToken'];
|
||||
this.lang = json['lang'];
|
||||
|
||||
this.dataPolicyAllowed = json['dataPolicyAllowed'];
|
||||
this.emailSubscription = json['emailSubscription'];
|
||||
@@ -103,6 +105,7 @@ class Customer {
|
||||
"syncedDate": this.syncedDate == null ? null : DateFormat('yyyy-MM-dd HH:mm:ss').format(this.syncedDate!),
|
||||
"trialDate": this.trialDate == null ? null : DateFormat('yyyy-MM-dd HH:mm:ss').format(this.trialDate!),
|
||||
"firebaseRegToken": this.firebaseRegToken,
|
||||
"lang": this.lang,
|
||||
};
|
||||
|
||||
@override
|
||||
|
||||
@@ -38,6 +38,8 @@ class CustomerTrainingPlanDetails {
|
||||
|
||||
bool isTest = false;
|
||||
|
||||
double base1RM = -1;
|
||||
|
||||
CustomerTrainingPlanDetails();
|
||||
|
||||
CustomerTrainingPlanDetails.fromJson(Map json) {
|
||||
@@ -89,6 +91,8 @@ class CustomerTrainingPlanDetails {
|
||||
this.isTest = json['isTest'] == "true" ? true : false;
|
||||
|
||||
this.exerciseType = Cache().getExerciseTypeById(exerciseTypeId!);
|
||||
|
||||
this.base1RM = json['base1RM'];
|
||||
}
|
||||
|
||||
ExerciseType? getExerciseType() => exerciseType;
|
||||
@@ -118,6 +122,7 @@ class CustomerTrainingPlanDetails {
|
||||
'state': this.state.toStr(),
|
||||
"isTest": this.isTest,
|
||||
"dayId": this.dayId,
|
||||
"base1RM": this.base1RM,
|
||||
};
|
||||
|
||||
//print("Detail toJson $jsonMap");
|
||||
|
||||
@@ -21,7 +21,7 @@ class Mautic {
|
||||
"goal": this.goal,
|
||||
"databaseId": this.databaseId,
|
||||
"subscriptionDate": this.subscriptionDate,
|
||||
"language": this.language
|
||||
"lang": this.language
|
||||
};
|
||||
|
||||
String toForm() {
|
||||
@@ -33,7 +33,7 @@ class Mautic {
|
||||
form += this.goal == null ? "" : "&mauticform[goal]=${this.goal}";
|
||||
form += this.subscriptionDate == null ? "" : "&mauticform[subscribed]=${this.subscriptionDate}";
|
||||
form += this.databaseId == null ? "" : "&mauticform[databaseid]=${this.databaseId}";
|
||||
form += this.language == null ? "" : "&mauticform[language]=${this.language}";
|
||||
form += this.language == null ? "" : "&mauticform[lang]=${this.language}";
|
||||
form += this.purchaseDate == null ? "" : "&mauticform[purchase_date]=${this.purchaseDate}";
|
||||
form += this.exerciseDate == null ? "" : "&mauticform[last_exercise]=${this.exerciseDate}";
|
||||
form += this.trialDate == null ? "" : "&mauticform[trialdate]=${this.trialDate}";
|
||||
|
||||
@@ -36,7 +36,7 @@ class TrainingPlanDetail {
|
||||
"parallel": this.parallel,
|
||||
"dayId": this.dayId,
|
||||
"day": this.day,
|
||||
"summary": this.summary
|
||||
"summary": this.summary,
|
||||
};
|
||||
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user