using System.Threading.Tasks;
using LRReader.Shared.Models.Main;
using Windows.UI.Xaml.Controls;

namespace LRReader.UWP.Views.Tabs.Content
{
	public sealed partial class SearchResults : UserControl
	{
		public SearchResults()
		{
			this.InitializeComponent();
		}

		public async Task Refresh()
		{
			await ArchiveList.Refresh();
		}

		public void Search(string query)
		{
			ArchiveList.Search(query);
		}

		public void Search(Category category)
		{
			ArchiveList.Search(category);
		}
	}
}
