mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-28 17:29: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:
@@ -48,16 +48,11 @@ public class Constants {
|
||||
* Default TimeOut for Connections
|
||||
*/
|
||||
public static final int DEFAULT_TIMEOUT = 20;
|
||||
/**
|
||||
* Default Polling-Time for Socket-Connection
|
||||
*/
|
||||
public static final int DEFAULT_POLLTIME = 1;
|
||||
|
||||
|
||||
/**
|
||||
* Default Settings for Client
|
||||
*/
|
||||
|
||||
|
||||
public static ClientSettings DefaultClientSettings() {
|
||||
var clientSettings = new ClientSettings();
|
||||
clientSettings.setTimeout(Duration.ofSeconds(DEFAULT_TIMEOUT));
|
||||
@@ -75,8 +70,6 @@ public class Constants {
|
||||
/**
|
||||
* Default Parameters for HTTP-Request
|
||||
*/
|
||||
|
||||
|
||||
public static Map<String, Object> DefaultClientParams() {
|
||||
var clientParams = new TreeMap<String, Object>();
|
||||
clientParams.put("aid", 1988);
|
||||
|
||||
Reference in New Issue
Block a user