Extract response exceptions
[smsapi-csharp.git] / smsapi / Proxy.cs
blob693593beed9897fe843ebfa8119e5aab40a4229b
1 using System.Collections.Generic;
2 using System.Collections.Specialized;
3 using System.IO;
4 using System.Threading;
5 using System.Threading.Tasks;
7 namespace SMSApi.Api
9 public interface Proxy
11 void Authentication(IClient client);
13 HttpResponseEntity Execute(
14 string uri,
15 NameValueCollection data,
16 RequestMethod method);
18 HttpResponseEntity Execute(
19 string uri,
20 NameValueCollection data,
21 Stream file,
22 RequestMethod method);
24 HttpResponseEntity Execute(
25 string uri,
26 NameValueCollection data,
27 Dictionary<string, Stream> files,
28 RequestMethod method);
30 Task<HttpResponseEntity> ExecuteAsync(
31 string uri,
32 NameValueCollection data,
33 RequestMethod method,
34 CancellationToken cancellationToken = default
37 Task<HttpResponseEntity> ExecuteAsync(
38 string uri,
39 NameValueCollection data,
40 Stream file,
41 RequestMethod method,
42 CancellationToken cancellationToken = default
45 Task<HttpResponseEntity> ExecuteAsync(
46 string uri,
47 NameValueCollection data,
48 Dictionary<string, Stream> files,
49 RequestMethod method,
50 CancellationToken cancellationToken = default