mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user