public PeopleViewModel(INavigationService navigationService, IFreeletics dataservice) : base(navigationService) { this.navigationService = navigationService; this.dataservice = dataservice; Loading = true; Display = false; Feed = new BindableCollection<FeedViewModel>(); }
public RunViewModel(INavigationService navigationService, IFreeletics dataservice) : base(navigationService) { this.navigationService = navigationService; this.dataservice = dataservice; Date = new DateTimeOffset(DateTime.Now); Time = DateTime.Now - DateTime.Today; Duration = "00:00"; }
public LoadingViewModel(INavigationService navigationService, IFreeletics service) : base(navigationService) { this.navigationService = navigationService; this.service = service; #if DEBUG if (Execute.InDesignMode) { NeedLogin = true; IsLoading = true; } #endif }
public AboutViewModel(INavigationService navigationService, IFreeletics dataservice) : base(navigationService) { this.navigationService = navigationService; this.dataservice = dataservice; var pv = Package.Current.Id.Version; Version version = new Version(Package.Current.Id.Version.Major, Package.Current.Id.Version.Minor, Package.Current.Id.Version.Build, Package.Current.Id.Version.Revision); VersionName = "Maso v" + version.ToString(); }
public MyWeekViewModel(INavigationService navigationService, IFreeletics dataservice) : base(navigationService) { this.navigationService = navigationService; this.dataservice = dataservice; AllDone = NoCoach = false; Trainings = new BindableCollection<TrainingViewModel>(); #if DEBUG if (Execute.InDesignMode) { Number = 4; var w = new BindableCollection<WorkoutViewModel>(); w.Add(new WorkoutViewModel() { IdxWeek = 1, Name = "apollon", Title = "APOLLON", WorkoutType = "Standard", Time = "3:04" }); w.Add(new WorkoutViewModel() { IdxWeek = 2, Name = "gaia", Title = "6/10 GAIA", WorkoutType = "Standard", Active = true }); w.Add(new WorkoutViewModel() { IdxWeek = 3, Name = "dione", Title = "DIONE", WorkoutType = "Standard" }); Trainings.Add(new TrainingViewModel() { Workouts = w }); } #endif }
public FreeWorkoutViewModel(INavigationService navigationService, IFreeletics dataservice) : base(navigationService) { this.navigationService = navigationService; this.dataservice = dataservice; Workouts = new BindableCollection<WorkoutDetailViewModel>(); Loading = true; Display = false; SetUp = false; Repetition = 10; LoadAlternative = false; ChooseAlternative = true; if (Execute.InDesignMode) { Loading = false; Display = true; SetUp = true; Repetition = 25; Workouts.Add(new WorkoutDetailViewModel() { Title = "APHRODITE" }); Workouts.Add(new WorkoutDetailViewModel() { Title = "DIONE" }); Workouts.Add(new WorkoutDetailViewModel() { Title = "ZEUS" }); } }
public WorkoutDetailViewModel(INavigationService navigationService, IFreeletics dataservice) : base(navigationService) { this.navigationService = navigationService; this.dataservice = dataservice; Exercises = new BindableCollection<ExercisesViewModel>(); Leaders = new BindableCollection<LeaderViewModel>(); #if DEBUG if (Execute.InDesignMode) { Slug = "dione-standard-3"; Title = "2X METIS"; IsSwitchable = false; Exercises.Add(new ExercisesViewModel() { Title = "Burpees", Image = "https://d2t4u40hiq4b70.cloudfront.net/videos/v2/burpees-96x54.jpg" }); Exercises.Add(new ExercisesViewModel() { Title = "Burpees", Image = "https://d2t4u40hiq4b70.cloudfront.net/videos/v2/burpees-96x54.jpg" }); Exercises.Add(new ExercisesViewModel() { Title = "Burpees", Image = "https://d2t4u40hiq4b70.cloudfront.net/videos/v2/burpees-96x54.jpg" }); } #endif if (dataservice != null) { Exercises.Add(new ExerciesSeparatorViewModel() { Title = "loading..." }); } }