/// <summary> /// Loads async the characters given the list from the API with limit /// and updates the stored characters /// </summary> /// <param name="urls">list of URLs of characters</param> public async Task LoadDataAsyncWithURLs(MasterDetailsViewState viewState, string[] urls = null) { SampleItems.Clear(); if (urls != null) { var characters = await GameOfThronesDataService.GetCharacterByURLAsync(urls, limit); SampleItems.Clear(); SubstitueEmptyAttributes(characters); } if (viewState == MasterDetailsViewState.Both) { if (SampleItems != null) { Selected = SampleItems.First(); } } }