Files
mixtape/zero.Api/Endpoints/Search/SearchOptions.cs
T
2021-12-01 13:03:06 +01:00

13 lines
290 B
C#

namespace zero.Api.Endpoints.Search;
public class SearchOptions : List<SearchIndexMap>
{
public bool Enabled { get; set; }
public SearchIndexMap<T> Map<T>(string icon = null) where T : ZeroEntity, new()
{
SearchIndexMap<T> map = new(icon);
Add(map);
return map;
}
}