mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
Merge pull request #16 from jwdeveloper/develop-1-0-4
Changes: Generated new Gifts Json TikTokLive.isLiveOnline() check if live if online TikTokLive.isLiveOnlineAsync() TikTokLive.isHostNameValid() check if hostName is correct TikTokLive.isHostNameValidAsync()
This commit is contained in:
@@ -22,8 +22,7 @@
|
||||
*/
|
||||
package io.github.jwdeveloper.tiktok;
|
||||
|
||||
import io.github.jwdeveloper.tiktok.data.models.Picture;
|
||||
import io.github.jwdeveloper.tiktok.data.models.gifts.Gift;
|
||||
import io.github.jwdeveloper.tiktok.exceptions.TikTokLiveOfflineHostException;
|
||||
import io.github.jwdeveloper.tiktok.utils.ConsoleColors;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -39,6 +38,12 @@ public class SimpleExample
|
||||
// set tiktok username
|
||||
|
||||
/*
|
||||
Optional checking if host name is correct
|
||||
if(TikTokLive.isHostNameValid(TIKTOK_HOSTNAME))
|
||||
{
|
||||
System.out.println("Live is online!");
|
||||
}
|
||||
|
||||
Optional checking if live is online
|
||||
if(TikTokLive.isLiveOnline(TIKTOK_HOSTNAME))
|
||||
{
|
||||
@@ -90,10 +95,6 @@ public class SimpleExample
|
||||
{
|
||||
print(ConsoleColors.RED,"[Disconnected]");
|
||||
})
|
||||
.onChestOpen((liveClient, event) ->
|
||||
{
|
||||
print(ConsoleColors.GREEN,"Chest has been open by ",event.getUser().getName());
|
||||
})
|
||||
.onRoom((liveClient, event) ->
|
||||
{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user