-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathEzyClient.cs
102 lines (58 loc) · 2.17 KB
/
EzyClient.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
using System;
using com.tvd12.ezyfoxserver.client.setup;
using com.tvd12.ezyfoxserver.client.socket;
using com.tvd12.ezyfoxserver.client.entity;
using com.tvd12.ezyfoxserver.client.manager;
using com.tvd12.ezyfoxserver.client.config;
using com.tvd12.ezyfoxserver.client.constant;
using com.tvd12.ezyfoxserver.client.request;
using com.tvd12.ezyfoxserver.client.statistics;
namespace com.tvd12.ezyfoxserver.client
{
public interface EzyClient
{
EzySetup setup();
void connect(String url);
void connect(String host, int port);
bool reconnect();
void send(EzyRequest request, bool encrypted = false);
void send(EzyCommand cmd, EzyArray data, bool encrypted = false);
void disconnect(int reason = (int)EzyDisconnectReason.CLOSE);
void close();
void processEvents();
void udpConnect(int port);
void udpConnect(String host, int port);
void udpSend(EzyRequest request, bool encrypted = false);
void udpSend(EzyCommand cmd, EzyArray data, bool encrypted = false);
String getName();
EzyClientConfig getConfig();
bool isEnableSSL();
bool isEnableDebug();
EzyUser getMe();
EzyZone getZone();
EzyConnectionStatus getStatus();
void setStatus(EzyConnectionStatus status);
bool isConnected();
EzyConnectionStatus getUdpStatus();
void setUdpStatus(EzyConnectionStatus status);
bool isUdpConnected();
void setSessionId(long sessionId);
void setSessionToken(String token);
void setSessionKey(byte[] sessionKey);
byte[] getSessionKey();
void setPrivateKey(byte[] privateKey);
byte[] getPrivateKey();
void setPublicKey(byte[] publicKey);
byte[] getPublicKey();
EzyISocketClient getSocket();
EzyApp getApp();
EzyApp getAppById(int appId);
EzyPlugin getPlugin();
EzyPlugin getPluginById(int pluginId);
EzyPingManager getPingManager();
EzyPingSchedule getPingSchedule();
EzyHandlerManager getHandlerManager();
EzyStatistics getNetworkStatistics();
EzyTransportType getTransportType();
}
}