Archived
1
0

Done search field suggestions template

This commit is contained in:
Michael Gordeev
2019-12-03 16:46:02 +03:00
parent d07aeee570
commit c11d1e3dcf
4 changed files with 57 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
namespace FoxTube.Core.Models
{
public class SearchSuggestion
{
public string Icon { get; set; }
public string Text { get; set; }
public SearchSuggestion(string text) : this(text, false) { }
public SearchSuggestion(string text, bool isHistoryEntry)
{
Text = text;
Icon = isHistoryEntry ? "\xE81C" : "";
}
}
}