As it stands now, the 7 Minute Workout (or Workout Runner) app can only play one specific workout. It needs to be fixed to support execution of any workout plan built using Personal Trainer. There is an obvious need to integrate these two solutions. We already have the groundwork done to commence this integration. We have the shared model services and we have the WorkoutService
to load data—enough to get us started.
Fixing 7 Minute Workout and converting it into a generic Workout Runner roughly involves the following steps:
Removing the hardcoded workout and exercises used in 7 Minute Workout from the controller.
Fixing the start page to show all available workouts and allowing users to select a workout to run.
Fixing the workout route configuration to pass the selected workout name as the route parameter to the workout page.
Loading the selected workout data using
WorkoutService
and starting the workout.
And, of course, we need to rename the 7 Minute Workout part...