IW4M-Admin/SharedLibraryCore/Interfaces/IRConConnection.cs

27 lines
872 B
C#
Raw Normal View History

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