public MainViewModel(IDonorsChooseApiService donorsChooseApiService,
     ILocalDataService localDataService, INavigationService navigationService)
 {
     _donorsChooseApiService = donorsChooseApiService;
     _localDataService = localDataService;
     _navigationService = navigationService;
 }
Пример #2
0
        public MainViewModel(ILocalDataService localDataService,
           INavigationService navigationService)
        {
            _localDataService = localDataService;
            _navigationService = navigationService;

            _recipeRepository = new RecipeRepository();
        }
        public WebDataService()
        {
            client = new HttpClient();

            dataService = DependencyService.Get <ILocalDataService>();

            userName = Preferences.Get(Constants.UserIdPreference, "Matt");
        }
Пример #4
0
        public FollowService(IMvxFileStore fileService, ILocalDataService localDbService, IMvxMessenger messenger)
        {
            _messenger = messenger;
            _localDbService = localDbService;
            _fileService = fileService;

            ReadFollows();
        }
Пример #5
0
 public MainViewModel(ILocalDataService localDataService, IStorageService storageService, INavigationService navigationService,
                      ILiveTileService liveTileService)
 {
     this.LocalDataService  = localDataService;
     this.StorageService    = storageService;
     this.NavigationService = navigationService;
     this.LiveTileService   = liveTileService;
 }
Пример #6
0
 public MainViewModel(ILocalDataService localDataService, IStorageService storageService,
     INavigationService navigationService,
     ILiveTileServiceWP8 liveTileService)
 {
     _localDataService = localDataService;
     _storageService = storageService;
     _navigationService = navigationService;
     _liveTileService = liveTileService;
 }
Пример #7
0
        public PersonViewModel()
        {
            this.socialService = GetService<ISocialService>();
            this.localDataService = GetService<ILocalDataService>();

            this.shareProfileCommand = new RelayCommand(ShareProfile, null);
            this.followPersonCommand = new RelayCommand(FollowPerson, null);
            this.unfollowPersonCommand = new RelayCommand(UnfollowPerson, null);
        }
Пример #8
0
 public MockFollowService(IMvxFileStore fileService, ILocalDataService localDbService, IMvxMessenger messenger)
     : base(fileService, localDbService, messenger)
 {
     AddFollows("701", new[] { "7" });
     AddFollows("702", new[] { "7" });
     AddFollows("705", new[] { "7" });
     AddFollows("706", new[] { "7" });
     AddFollows("707", new[] { "7" });
     AddFollows("708", new[] { "7" });
 }
        public WorkoutHistoryPageViewModel()
        {
            GetWorkoutHistoryCommand = new Command(async() => await ExecuteGetWorkoutHistoryCommand());
            StartNewWorkoutCommand   = new Command(async() => await ExecuteStartWorkoutCommand());
            SignoutCommand           = new Command(() => ExecuteSignoutCommand());
            TrainingSessions         = new ObservableCollection <TrainingSession>();

            localSvc = DependencyService.Get <ILocalDataService>();
            cloudSvc = DependencyService.Get <IWebDataService>();
        }
Пример #10
0
        public AlertsViewModel()
        {
            _messenger = Mvx.Resolve<IMvxMessenger>();
            _service = Mvx.Resolve<IAlertService>();
            _fileService = Mvx.Resolve<IMvxFileStore>();
            _localDbService = Mvx.Resolve<ILocalDataService>();
            //			NetworkConnectionHelper = Mvx.Resolve<IConnectivity> ();
            _messenger.Subscribe<FollowsChanged>( async x => await ExecuteRefreshCommand(), MvxReference.Strong);

        }
Пример #11
0
        public AddRecipePageViewModel(INavigationService navigationService, IRecipeService recipeService, IPageDialogService pageDialog, ILocalDataService localDataService)
            : base(navigationService)
        {
            Title = "Add Recipe";
            _navigationService = navigationService;
            _recipeService     = recipeService;
            _localDataService  = localDataService;
            _pageDialog        = pageDialog;

            SubmitRecipe      = new Command(submitrecipe_execute, submitRecipe_canexecute);
            AddIngredient     = new Command(addIngredient_execute, addIngredient_canexecute);
            recipe            = new Recipe();
            db                = new SqliteDataService();
            ListOfIngredients = new ObservableCollection <Ingredient>();
        }
Пример #12
0
 public BaseViewModel()
 {
     //From IOC container in Xamarin Forms.
     DataService      = DependencyService.Get <IDataService>();
     LocalDataService = DependencyService.Get <ILocalDataService>();
 }
 public FilesController(ILocalDataService svc) {
     _LocalDataSvc = svc;
 }
Пример #14
0
 public NavigationService(IUserService userService, ILocalDataService localDataService)
 {
     _userService      = userService;
     _localDataService = localDataService;
 }
Пример #15
0
        public DisplaySingleRecipeViewModel(INavigationService navigationService, IRecipeService recipeService, IPageDialogService pageDialog, ILocalDataService localDataService)
            : base(navigationService)
        {
            recipe             = new Recipe();
            _pageDialog        = pageDialog;
            _navigationService = navigationService;

            DeleteRecipe = new Command(deleterecipe_execute);
            db           = new SqliteDataService();
        }
Пример #16
0
		public WebService1(ILocalDataService localDataService)
		{
			_localDataService = localDataService;
		}
        public CredentialListPageViewModel(INavigationService navigationService, ICredentialService credentialService, ILocalDataService localDataService)
            : base(navigationService)
        {
            Title = "Saved Credentials";
            this.localDataService  = localDataService ?? throw new ArgumentNullException(nameof(localDataService));
            this.navigationService = navigationService ?? throw new ArgumentNullException(nameof(navigationService));
            this.credentialService = credentialService ?? throw new ArgumentNullException(nameof(credentialService));

            localDataService.Initialize();
        }
 public ProjectDetailsViewModel(ILocalDataService localDataService,
     INavigationService navigationService)
 {
     _localDataService = localDataService;
     _navigationService = navigationService;
 }
Пример #19
0
 public MockAlertService(IMvxFileStore fileService, ILocalDataService localDbService, IMvxMessenger messenger)
     : base()
 {
     //AddAlerts("701", new[] { "7" });
 }
Пример #20
0
 public SearchViewModel(ILocalDataService localDbService)
 {
     _localDbService = localDbService;
     this.SearchResults = _localDbService.GetStations("");
 }
Пример #21
0
 public MockWebService(ILocalDataService localDbService)
 {
     _localDbService = localDbService;
 }
Пример #22
0
 public StarSystemService(ILocalDataService localDataService, IWebDataService webDataService)
 {
     localService = localDataService;
     webService   = webDataService;
 }