34 lines
926 B
Dart
34 lines
926 B
Dart
import 'package:aitrainer_app/model/exercise_plan_detail.dart';
|
|
import 'package:aitrainer_app/model/exercise_type.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
enum TrainingEvaluationExerciseType { weightBased, repeatBased, secondBased }
|
|
|
|
extension TrainingEvaluationExerciseTypeExt on TrainingEvaluationExerciseType {
|
|
String toStr() => this.toString().split(".").last;
|
|
bool equalsTo(TrainingEvaluationExerciseType value) => this.toString() == value.toString();
|
|
bool equalsStringTo(String value) => this.toString() == value;
|
|
}
|
|
|
|
class TrainingEvaluationExercise {
|
|
late int exerciseTypeId;
|
|
late String name;
|
|
late TrainingEvaluationExerciseType type;
|
|
late ExerciseType exerciseType;
|
|
|
|
int? repeats;
|
|
int? maxRepeats;
|
|
|
|
int? totalLift;
|
|
int? maxTotalLift;
|
|
|
|
double? oneRepMax;
|
|
double? max1RM;
|
|
|
|
late double? trend;
|
|
late String trendText;
|
|
late Color trendColor;
|
|
|
|
late ExercisePlanDetailState state;
|
|
}
|