public void StartComposing(ICollection <IListEntry> entires, EntrySource source) { Reset(); sources.Enqueue(source); currentMergedList = entires.ToList(); entryProcessingStrategy = EntryProcessingFactory.Instance.Get(source); }
private async Task GetCurrentMergedListFromSource() { entryProcessingStrategy = EntryProcessingFactory.Instance.Get(currentSource); switch (currentSource) { case EntrySource.Anime: currentMergedList = (await myAnimeListService.GetMergedAnimeLists(usernames)).ToList(); break; case EntrySource.Manga: currentMergedList = (await myAnimeListService.GetMergedMangaLists(usernames)).ToList(); break; default: break; } }