Exemple #1
0
 private void OnDataRequested(DataTransferManager sender, DataRequestedEventArgs args)
 {
     if (IbnLiveModel != null)
     {
         IbnLiveModel.GetShareContent(args.Request);
     }
 }
Exemple #2
0
 /// <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);
 }
Exemple #3
0
 /// <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);
 }