private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs args) { if (RTBookReviewsModel != null) { RTBookReviewsModel.GetShareContent(args.Request); } }
/// <summary> /// Load ViewModel items asynchronous /// </summary> public async Task LoadData(bool isNetworkAvailable) { var loadTasks = new Task[] { NewYorkTimesModel.LoadItems(isNetworkAvailable), TheGuardianModel.LoadItems(isNetworkAvailable), NYRBModel.LoadItems(isNetworkAvailable), RTBookReviewsModel.LoadItems(isNetworkAvailable), TheIndependentModel.LoadItems(isNetworkAvailable), }; await Task.WhenAll(loadTasks); }
/// <summary> /// Refresh ViewModel items asynchronous /// </summary> public async Task RefreshData(bool isNetworkAvailable) { var refreshTasks = new Task[] { NewYorkTimesModel.RefreshItems(isNetworkAvailable), TheGuardianModel.RefreshItems(isNetworkAvailable), NYRBModel.RefreshItems(isNetworkAvailable), RTBookReviewsModel.RefreshItems(isNetworkAvailable), TheIndependentModel.RefreshItems(isNetworkAvailable), }; await Task.WhenAll(refreshTasks); }