Breaking changes:

'Gift': changed from class to enum, so now you can handle
incoming gifts in switch

`Events`
- new:
     onGiftComboFinished
- Removed:
      onGiftBrodcast
- Rename:
     onGiftMessage -> onGift
     onRoomPinMessage -> onRoomPin
     onRoomMessage -> onRoom
     onLinkMessage -> onLink
     onBarrageMessage -> onBarrage
     onPollMessage -> onPoll
     onShopMessage -> onShop
     onDetectMessage -> onDetect

`GiftManager`
   added:
      registerGift
      findById
      findByName
      getGifts
   removed:
      getActiveGifts
This commit is contained in:
JW
2023-10-06 03:12:29 +02:00
parent ed2af8cce7
commit 043dfe95d8
6 changed files with 47 additions and 33 deletions

View File

@@ -25,9 +25,16 @@ package io.github.jwdeveloper.tiktok.live;
import lombok.Data;
@Data
public class LiveRoomMeta
{
private int status;
public class LiveRoomMeta {
/**
* 0 - Unknown
* 1 - ?
* 2 - Online
* 3 - ?
* 4 - Offline
*/
private boolean ageRestricted;
private int status;
private boolean ageRestricted;
}

View File

@@ -7,14 +7,13 @@ import io.github.jwdeveloper.tiktok.live.LiveClient;
import java.util.concurrent.CompletableFuture;
import java.util.function.Consumer;
public interface LiveClientBuilder extends EventBuilder<LiveClientBuilder>
{
public interface LiveClientBuilder extends EventBuilder<LiveClientBuilder> {
LiveClientBuilder configure(Consumer<ClientSettings> consumer);
LiveClientBuilder addListener(TikTokEventListener listener);
LiveClient build();
LiveClient buildAndConnect();
CompletableFuture<LiveClient> buildAndConnectAsync();