25 lines
812 B
C#
25 lines
812 B
C#
using System.Threading.Tasks;
|
|
using SharedLibraryCore.RCon;
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
|
{
|
|
/// <summary>
|
|
/// defines the capabilities of an RCon connection
|
|
/// </summary>
|
|
public interface IRConConnection
|
|
{
|
|
/// <summary>
|
|
/// 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 = "");
|
|
|
|
/// <summary>
|
|
/// sets the rcon parser
|
|
/// </summary>
|
|
/// <param name="config">parser</param>
|
|
void SetConfiguration(IRConParser config);
|
|
}
|
|
} |