Exemplo n.º 1
0
 public SherpanyValuesPageViewModel(IDummyApiService apiService, ICachingService <List <SherpanyValueModel> > cachingService)
 {
     _apiService           = apiService;
     _cachingService       = cachingService;
     GetValuesCommand      = new RelayCommand(GetValues, () => !ValuesRetrievalInProgress);
     CreateNewValueCommand = new RelayCommand(CreateNewValue, () => Values?.Any() == true);
     AddValueCommand       = new RelayCommand(AddNewValue);
     DeleteValueCommand    = new RelayCommand(DeleteValue);
     ResetValuesCommand    = new RelayCommand(ResetValues, () => !ValuesRetrievalInProgress);
 }
 public SherpanyValuesPageViewModel(IDummyApiService apiService)
 {
     _apiService = apiService;
 }
 public SherpanyValuesPageViewModel(IDummyApiService apiService, IValuesCacheService valuesCacheService)
 {
     _apiService         = apiService;
     _valuesCacheService = valuesCacheService;
 }