public LoginViewModel(
            IReactiveTVShowTimeApiService tvshowtimeApiService,
            INavigationService navigationService)
        {
            _tvshowtimeApiService = tvshowtimeApiService;
            _navigationService    = navigationService;

            _localObjectStorageHelper = ServiceLocator.Current.GetInstance <IObjectStorageHelper>(ServiceLocatorConstants.LocalObjectStorageHelper);

            TryAuthenticateCommand = new RelayCommand(TryAuthenticate);
        }
        public MainViewModel(
            INavigationService navigationService,
            IHamburgerMenuService hamburgerMenuService)
        {
            _navigationService    = navigationService;
            _hamburgerMenuService = hamburgerMenuService;

            _localObjectStorageHelper = ServiceLocator.Current.GetInstance <IObjectStorageHelper>(ServiceLocatorConstants.LocalObjectStorageHelper);

            RegisterBackgroundTasks();
        }
 public MultasRealizadas(IObjectStorageHelper <ListaDeMultasRealizadas> objectStorageHelper)
 {
     this.objectStorageHelper = objectStorageHelper;
     if (multasRealizadas == null)
     {
         var loadedTask = objectStorageHelper.LoadAsync();
         loadedTask.ContinueWith(task =>
         {
             multasRealizadas = task.Result ?? new ListaDeMultasRealizadas();
         });
     }
 }