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
+1
View File
@@ -142,6 +142,7 @@
<Compile Include="Models\Inbox\InboxItem.cs" />
<Compile Include="Models\IRefreshable.cs" />
<Compile Include="Models\Notifications.cs" />
<Compile Include="Models\SearchSuggestion.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Properties\FoxTube.Core.rd.xml" />
</ItemGroup>
+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" : "";
}
}
}