Skip to content

Commit fd5a2d6

Browse files
committed
checkstyle
1 parent f75e667 commit fd5a2d6

File tree

190 files changed

+6196
-6466
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

190 files changed

+6196
-6466
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea/
12
*.class
23
*.project
34
*.classpath

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@ java client for ezyfox server
55
# Installation
66

77
```xml
8+
89
<dependency>
910
<groupId>com.tvd12</groupId>
1011
<artifactId>ezyfox-server-java-client</artifactId>
1112
<version>1.1.8</version>
1213
</dependency>
1314
```
1415

15-
16-
1716
# Contact us
1817

1918
- Touch us on [Facebook](https://www.facebook.com/youngmonkeys.org)

checkstyle.xml

Lines changed: 380 additions & 0 deletions
Large diffs are not rendered by default.

pom.xml

Lines changed: 56 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,61 @@
11
<?xml version="1.0"?>
22
<project
3-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4-
xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
5-
<modelVersion>4.0.0</modelVersion>
6-
<parent>
7-
<groupId>com.tvd12</groupId>
8-
<artifactId>ezyfox</artifactId>
9-
<version>1.0.3</version>
10-
</parent>
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0">
5+
<modelVersion>4.0.0</modelVersion>
6+
<parent>
7+
<groupId>com.tvd12</groupId>
8+
<artifactId>ezyfox</artifactId>
9+
<version>1.0.4</version>
10+
</parent>
1111

12-
<artifactId>ezyfox-server-java-client</artifactId>
13-
14-
<version>1.1.8</version>
15-
<name>ezyfox-server-java-client</name>
16-
<url>https://youngmonkeys.org/</url>
12+
<artifactId>ezyfox-server-java-client</artifactId>
1713

18-
<properties>
19-
<ezy.version>1.2.2</ezy.version>
20-
</properties>
21-
22-
<dependencies>
23-
<dependency>
24-
<groupId>com.tvd12</groupId>
25-
<artifactId>ezyfox-msgpack</artifactId>
26-
<version>${ezy.version}</version>
27-
</dependency>
28-
</dependencies>
14+
<version>1.1.9</version>
15+
<name>ezyfox-server-java-client</name>
16+
<url>https://youngmonkeys.org/</url>
17+
18+
<properties>
19+
<ezy.version>1.2.3</ezy.version>
20+
</properties>
21+
22+
<dependencies>
23+
<dependency>
24+
<groupId>com.tvd12</groupId>
25+
<artifactId>ezyfox-msgpack</artifactId>
26+
<version>${ezy.version}</version>
27+
</dependency>
28+
</dependencies>
29+
30+
<build>
31+
<plugins>
32+
<plugin>
33+
<groupId>org.apache.maven.plugins</groupId>
34+
<artifactId>maven-checkstyle-plugin</artifactId>
35+
<version>3.1.2</version>
36+
<dependencies>
37+
<dependency>
38+
<groupId>com.puppycrawl.tools</groupId>
39+
<artifactId>checkstyle</artifactId>
40+
<version>8.42</version>
41+
</dependency>
42+
</dependencies>
43+
<configuration>
44+
<encoding>UTF-8</encoding>
45+
<consoleOutput>true</consoleOutput>
46+
<violationSeverity>warning</violationSeverity>
47+
<configLocation>checkstyle.xml</configLocation>
48+
</configuration>
49+
<executions>
50+
<execution>
51+
<id>verify</id>
52+
<phase>verify</phase>
53+
<goals>
54+
<goal>check</goal>
55+
</goals>
56+
</execution>
57+
</executions>
58+
</plugin>
59+
</plugins>
60+
</build>
2961
</project>

src/main/java/com/tvd12/ezyfoxserver/client/EzyClient.java

Lines changed: 52 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -16,100 +16,96 @@
1616
import com.tvd12.ezyfoxserver.client.socket.EzyPingSchedule;
1717
import com.tvd12.ezyfoxserver.client.socket.EzySocketClient;
1818

19-
/**
20-
* Created by tavandung12 on 9/20/18.
21-
*/
22-
2319
public interface EzyClient extends EzyCloseable {
24-
20+
2521
EzySetup setup();
26-
22+
2723
void connect(String host, int port);
28-
24+
2925
boolean reconnect();
30-
26+
3127
void send(EzyRequest request);
32-
28+
3329
void send(EzyRequest request, boolean encrypted);
34-
30+
3531
void send(EzyCommand cmd, EzyArray data);
36-
32+
3733
void send(EzyCommand cmd, EzyArray data, boolean encrypted);
38-
34+
3935
void disconnect(int reason);
40-
36+
37+
default void disconnect() {
38+
disconnect(EzyDisconnectReason.CLOSE.getId());
39+
}
40+
4141
void processEvents();
42-
42+
4343
void udpConnect(int port);
44-
44+
4545
void udpConnect(String host, int port);
46-
46+
4747
void udpSend(EzyRequest request);
48-
48+
4949
void udpSend(EzyCommand cmd, EzyArray data);
50-
50+
5151
void close();
52-
52+
5353
String getName();
54-
54+
5555
EzyClientConfig getConfig();
56-
56+
5757
boolean isEnableSSL();
58-
58+
5959
boolean isEnableDebug();
60-
60+
6161
EzyUser getMe();
62-
62+
6363
EzyZone getZone();
64-
64+
6565
EzyConnectionStatus getStatus();
66-
66+
6767
void setStatus(EzyConnectionStatus status);
68-
68+
6969
EzyConnectionStatus getUdpStatus();
70-
70+
7171
void setUdpStatus(EzyConnectionStatus status);
72-
73-
void setSessionId(long sessionId);
74-
72+
7573
long getSessionId();
76-
77-
void setSessionToken(String token);
78-
74+
75+
void setSessionId(long sessionId);
76+
7977
String getSessionToken();
80-
81-
void setSessionKey(byte[] sessionKey);
82-
78+
79+
void setSessionToken(String token);
80+
8381
byte[] getSessionKey();
84-
85-
void setPrivateKey(byte[] privateKey);
86-
82+
83+
void setSessionKey(byte[] sessionKey);
84+
8785
byte[] getPrivateKey();
88-
89-
void setPublicKey(byte[] publicKey);
90-
86+
87+
void setPrivateKey(byte[] privateKey);
88+
9189
byte[] getPublicKey();
92-
90+
91+
void setPublicKey(byte[] publicKey);
92+
9393
EzySocketClient getSocket();
94-
94+
9595
EzyApp getApp();
96-
96+
9797
EzyApp getAppById(int appId);
98-
98+
9999
EzyPingManager getPingManager();
100-
100+
101101
EzyPingSchedule getPingSchedule();
102-
102+
103103
EzyHandlerManager getHandlerManager();
104-
105-
default void disconnect() {
106-
disconnect(EzyDisconnectReason.CLOSE.getId());
107-
}
108-
104+
109105
default boolean isConnected() {
110-
return getStatus() == EzyConnectionStatus.CONNECTED;
106+
return getStatus() == EzyConnectionStatus.CONNECTED;
111107
}
112-
108+
113109
default boolean isUdpConnected() {
114110
return getUdpStatus() == EzyConnectionStatus.CONNECTED;
115111
}
Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
package com.tvd12.ezyfoxserver.client;
22

3-
/**
4-
* Created by tavandung12 on 10/2/18.
5-
*/
6-
73
public interface EzyClientAware {
84

95
void setClient(EzyClient client);
10-
116
}

0 commit comments

Comments
 (0)