Example #1
0
 /// <summary>
 /// Load ViewModel items asynchronous
 /// </summary>
 public async Task LoadData(bool isNetworkAvailable)
 {
     var loadTasks = new Task[]
     {
         TimesOfIndiaModel.LoadItems(isNetworkAvailable),
         TheHinduModel.LoadItems(isNetworkAvailable),
         HindustanTimesModel.LoadItems(isNetworkAvailable),
     };
     await Task.WhenAll(loadTasks);
 }
Example #2
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);
 }