2022-02-28 21:44:30 -05:00
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
2022-01-26 11:32:16 -05:00
|
|
|
|
using SharedLibraryCore.RCon;
|
2020-02-11 17:44:06 -05:00
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// defines the capabilities of an RCon connection
|
2020-02-11 17:44:06 -05:00
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IRConConnection
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// sends a query with the instance of the rcon connection
|
2020-02-11 17:44:06 -05:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="type">type of RCon query to perform</param>
|
|
|
|
|
/// <param name="parameters">optional parameter list</param>
|
|
|
|
|
/// <returns></returns>
|
2022-02-28 21:44:30 -05:00
|
|
|
|
Task<string[]> SendQueryAsync(StaticHelpers.QueryType type, string parameters = "", CancellationToken token = default);
|
2020-02-11 17:44:06 -05:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// sets the rcon parser
|
2020-02-11 17:44:06 -05:00
|
|
|
|
/// </summary>
|
2020-11-11 19:53:23 -05:00
|
|
|
|
/// <param name="config">parser</param>
|
|
|
|
|
void SetConfiguration(IRConParser config);
|
2020-02-11 17:44:06 -05:00
|
|
|
|
}
|
2022-02-28 21:44:30 -05:00
|
|
|
|
}
|