Ejemplo n.º 1
0
        public static void BuildGlobals(IHeartrateRepository heartrateRepository, ISleepRepository sleepRepository, IStepsRepository stepsRepository, Database database)
        {
            StepsRepository     = stepsRepository;
            SleepRepository     = sleepRepository;
            HeartrateRepository = heartrateRepository;
            Database            = database;

            HeartratePageViewModel = new HeartRatePageViewModel(HeartrateRepository);
            SamplesService         = new SamplesService(HeartrateRepository, StepsRepository, SleepRepository);
            StepsPageViewModel     = new StepsPageViewModel();
            SettingsPageViewModel  = new SettingsPageViewModel();
            SleepPageViewModel     = new SleepPageViewModel();
            DevicePageViewModel    = new DevicePageViewModel();
            HomePageViewModel      = new HomePageViewModel();

            LanguageDictionary = new Dictionary <string, string>
            {
                { "Nederlands", "nl-NL" },
                { "English", "en-EN" },
                { "Deutsch", "de-DE" }
            };
        }
Ejemplo n.º 2
0
 public HeartRatePageViewModel(IHeartrateRepository heartrateRepository)
 {
     _heartrateRepository = heartrateRepository;
 }
Ejemplo n.º 3
0
 public SamplesService(IHeartrateRepository heartrateRepository, IStepsRepository stepsRepository, ISleepRepository sleepRepository)
 {
     _heartrateRepository = heartrateRepository;
     _stepsRepository     = stepsRepository;
     _sleepRepository     = sleepRepository;
 }