--- /dev/null
+using System;
+using System.Windows.Input;
+using Tizen.Applications;
+using Fitness.Models;
+using Fitness.Services;
+using Tizen.NUI;
+using Tizen.NUI.Binding;
+
+namespace Fitness.ViewModels
+{
+ public class ExercisePreviewViewModel : BaseViewModel
+ {
+ public ExercisePreviewViewModel()
+ {
+ Skip = new Command(() => { NavigationService.Instance.NavigateToExercisingView(); });
+
+ CurrentWorkout = new WorkoutViewModel
+ {
+ Title = "JOGA Workout 0",
+ Description = "1. Lie down on your back, keep your knees bent and your back and feet flat on the mat.\n2. Slowly lift your torso and situp.\n3. Return to the starting position by rolling down one vertebrae at a time.\n4. Repeat the exercise until set is complete.",
+ Difficulty = DifficultyLevel.Easy,
+ Duration = new TimeSpan(0, 4, 30),
+ Favourite = true,
+ VideoUrl = Application.Current.DirectoryInfo.Resource + "media/JOGA-0000.avi",
+ ThumbnailUrl = Application.Current.DirectoryInfo.Resource + "media/JOGA-0000.jpeg",
+ };
+ }
+
+ /// <summary>
+ /// Review movement
+ /// </summary>
+ public WorkoutViewModel CurrentWorkout { get; private set; }
+
+ /// <summary>
+ /// Review movement
+ /// </summary>
+ public ICommand ReviewMovement { get; private set; }
+
+ /// <summary>
+ /// Skip review
+ /// </summary>
+ public ICommand Skip { get; private set; }
+
+ /// <summary>
+ /// previous workout
+ /// </summary>
+ public ICommand PreviousWorkout { get; private set; }
+
+ /// <summary>
+ /// next workout
+ /// </summary>
+ public ICommand NextWorkout { get; private set; }
+ }
+}
SelectedWorkout = Workouts.First();
- WatchPreview = new Command(() => { NavigationService.Instance.NavigateToLoadingView(); });
+ WatchPreview = new Command(() => { NavigationService.Instance.NavigateToExercisePreviewView(); });
StartWorkout = new Command(() => { NavigationService.Instance.NavigateToScanningView(); });
}