mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-09 23:00:57 -05:00
[issue 135] enhanced search
implement enhanced search for chat messages
This commit is contained in:
20
SharedLibraryCore/Interfaces/IResourceQueryHelper.cs
Normal file
20
SharedLibraryCore/Interfaces/IResourceQueryHelper.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using SharedLibraryCore.Helpers;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace SharedLibraryCore.Interfaces
|
||||
{
|
||||
/// <summary>
|
||||
/// defines the capabilities of a resource queryier
|
||||
/// </summary>
|
||||
/// <typeparam name="QueryType">Type of query</typeparam>
|
||||
/// <typeparam name="ResultType">Type of result</typeparam>
|
||||
public interface IResourceQueryHelper<QueryType, ResultType>
|
||||
{
|
||||
/// <summary>
|
||||
/// queries a resource and returns the result of the query
|
||||
/// </summary>
|
||||
/// <param name="query">query params</param>
|
||||
/// <returns></returns>
|
||||
Task<ResourceQueryHelperResult<ResultType>> QueryResource(QueryType query);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user