/// <summary> /// Initializes a new instance of the MainViewModel class. /// </summary> public MainViewModel(IExtendedNavigationService navigationService, IAsyncStorageService asyncStorageService, IApplicationSettingsService settingsService) { _navigationService = navigationService; _asyncStorageService = asyncStorageService; _settingsService = settingsService; if (IsInDesignMode) { DataExists = true; } }
private CacheService(string credFileName) { storage = Mvx.Resolve <IMvxFileStore>(); asyncStorage = Mvx.Resolve <IAsyncStorageService>(); _indexByHttp = new Dictionary <string, Entry>(); _persistentFiles = new List <string>(); //Add Files that won't be erased by the CacheCleaner _persistentFiles.Add(_indexFileName); _persistentFiles.Add(credFileName); loadEntries(); checkForUnindexedFiles(); checkForOldFiles(); writeEntries(); }
/// <summary> /// Initializes a new instance of the UserProfileViewModel class. /// </summary> public UserProfileViewModel(IExtendedNavigationService navigationService, IScoreoidClient scoreoidClient, IPhotoChooserService photoChooserService, IAsyncStorageService asyncStorageService) { _navigationService = navigationService; _scoreoidClient = scoreoidClient; _photoChooserService = photoChooserService; _asyncStorageService = asyncStorageService; if (IsInDesignMode) { CurrentPlayer = new Player { Username = "******", BestScore = 336, Rank = 1 }; } TotalScore = NumberOfGames = 0; }
/// <summary> /// Initializes a new instance of the DownloadingSongsViewModel class. /// </summary> public DownloadingSongsViewModel(IExtendedNavigationService navigationService, IMusicClient musicClient, IAsyncStorageService asyncStorageService) { _navigationService = navigationService; _musicClient = musicClient; _asyncStorageService = asyncStorageService; }