WT 1.1.24+2 Weight calculation

This commit is contained in:
bossanyit
2021-11-02 17:18:49 +01:00
parent fd6a5a3145
commit e8fc6cd7ec
25 changed files with 222 additions and 236 deletions
+3
View File
@@ -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");
+2 -2
View File
@@ -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}";
+1 -1
View File
@@ -36,7 +36,7 @@ class TrainingPlanDetail {
"parallel": this.parallel,
"dayId": this.dayId,
"day": this.day,
"summary": this.summary
"summary": this.summary,
};
@override