more work on api & rename to Pilz.Net
This commit is contained in:
14
Pilz.Net/Api/IApiClient.cs
Normal file
14
Pilz.Net/Api/IApiClient.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
namespace Pilz.Net.Api;
|
||||
|
||||
public interface IApiClient
|
||||
{
|
||||
string ApiUrl { get; }
|
||||
|
||||
string? AuthKey { get; set; }
|
||||
|
||||
IMessageSerializer Serializer { get; }
|
||||
|
||||
Task<ApiResponse> SendMessage<TResponse>(string url, ApiMessage message, IMessageSerializer? serializer = null);
|
||||
|
||||
Task<ApiResponse<TResponse>> SendRequest<TResponse>(string url, ApiMessage message, IMessageSerializer? serializer = null) where TResponse : ApiMessage;
|
||||
}
|
||||
Reference in New Issue
Block a user