more work on api

This commit is contained in:
2024-08-15 15:51:23 +02:00
parent c24b460a0d
commit f57aef5f4f
6 changed files with 112 additions and 47 deletions

View File

@@ -2,5 +2,6 @@
public interface IApiClient
{
void MakeRequest<T>(string url, T message) where T : ApiMessage;
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;
}