-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathILeagueClient.cs
26 lines (20 loc) · 920 Bytes
/
ILeagueClient.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using RestSharp;
using System;
using System.Threading.Tasks;
namespace LCU.NET
{
public delegate void ConnectedChangedDelegate(bool connected);
public interface ILeagueClient
{
event ConnectedChangedDelegate ConnectedChanged;
bool IsConnected { get; }
IProxy Proxy { get; set; }
IRestClient Client { get; }
ILeagueSocket Socket { get; }
void BeginTryInit(InitializeMethod method = InitializeMethod.CommandLine, int interval = 500);
bool Init(InitializeMethod method = InitializeMethod.CommandLine);
void Close();
Task<T> MakeRequestAsync<T>(string resource, Method method, object data = null, Action<IRestRequest> modifyRequest = null, params string[] fields);
Task MakeRequestAsync(string resource, Method method, object data = null, Action<IRestRequest> modifyRequest = null, params string[] fields);
}
}