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