@@ -27,25 +27,25 @@ Do you prefer other programming languages?
2727
2828``` xml
2929 <repositories >
30- <repository >
31- <id >jitpack.io</id >
32- <url >https://jitpack.io</url >
33- </repository >
34- </repositories >
35-
36- <dependencies >
37- <dependency >
38- <groupId >com.github.jwdeveloper.TikTok-Live-Java</groupId >
39- <artifactId >Client</artifactId >
40- <version >0.0.17 -Release</version >
41- <scope >compile</scope >
42- </dependency >
43- <dependency >
44- <groupId >com.google.code.gson</groupId >
45- <artifactId >gson</artifactId >
46- <version >2.10.1</version >
47- </dependency >
48- </dependencies >
30+ <repository >
31+ <id >jitpack.io</id >
32+ <url >https://jitpack.io</url >
33+ </repository >
34+ </repositories >
35+
36+ <dependencies >
37+ <dependency >
38+ <groupId >com.github.jwdeveloper.TikTok-Live-Java</groupId >
39+ <artifactId >Client</artifactId >
40+ <version >0.0.19 -Release</version >
41+ <scope >compile</scope >
42+ </dependency >
43+ <dependency >
44+ <groupId >com.google.code.gson</groupId >
45+ <artifactId >gson</artifactId >
46+ <version >2.10.1</version >
47+ </dependency >
48+ </dependencies >
4949```
5050
51512 . Create your first chat connection
@@ -131,6 +131,7 @@ public class ConfigurationExample {
131131package io.github.jwdeveloper.tiktok ;
132132
133133import io.github.jwdeveloper.tiktok.annotations.TikTokEventHandler ;
134+ import io.github.jwdeveloper.tiktok.events.TikTokEvent ;
134135import io.github.jwdeveloper.tiktok.events.messages.TikTokCommentEvent ;
135136import io.github.jwdeveloper.tiktok.events.messages.TikTokErrorEvent ;
136137import io.github.jwdeveloper.tiktok.events.messages.TikTokGiftMessageEvent ;
@@ -163,6 +164,7 @@ public class ListenerExample
163164 public static class CustomListener implements TikTokEventListener
164165 {
165166
167+
166168 @TikTokEventHandler
167169 public void onError (LiveClient liveClient , TikTokErrorEvent event )
168170 {
@@ -172,7 +174,6 @@ public class ListenerExample
172174 @TikTokEventHandler
173175 public void onCommentMessage (LiveClient liveClient , TikTokCommentEvent event )
174176 {
175- event. getUser(). getProfilePicture(). downlaod();
176177 System . out. println(event. getText());
177178 }
178179
@@ -181,6 +182,13 @@ public class ListenerExample
181182 {
182183 System . out. println(event. getGift(). getDescription());
183184 }
185+
186+ @TikTokEventHandler
187+ public void onAnyEvent (LiveClient liveClient , TikTokEvent event )
188+ {
189+ System . out. println(event. getClass(). getSimpleName());
190+ }
191+
184192 }
185193}
186194
0 commit comments