Proto commits in jwdeveloper/TikTokLiveJava

These 27 commits are when the Protocol Buffers files have changed:

Commit:1cc8a5a
Author:kohlerpop1

Adapt everything to newly updated proto and fix all mappings for those events.

The documentation is generated from this commit.

Commit:1b3ee24
Author:kohlerpop1

Add STREAM_SUSPENDED proto and use it to fire stream ended event!

Commit:69f1d5b
Author:kohlerpop1

Fixed proto file type names, created TikTokEventListenerBase with all events, created ListUser with additional information, and created all events for TikTokLink individual events

Commit:67948b1
Author:kohlerpop1

Changed isNotClosing to isOpen because if isOpen is false inside of any of the using methods, it throws an exception.

Commit:22e11a7
Author:kohlerpop1

Removed TikTokRoomInfo.getHostUser() in favor of TikTokRoomInfo.getHost(). Major rework of TikTokLinkMicBattleEvent and proto to support it. Addition changes to other files to support!

Commit:f7a92d5
Author:JW
Committer:Jacek W

- refactor of the Http client Changes: Http-client settings in configure method ``` TikTokLive.newClient("X") .configure(liveClientSettings -> { var httpSetting = liveClientSettings.getHttpSettings(); httpSetting.setTimeout(Duration.ofSeconds(12)); }); ``` `TikTokLive.requests()` Easy and quick way of making http request to tiktok ``` var giftsResponse =TikTokLive.request.fetchGiftsData(); ``` Removed: TikTokLive.isLiveOnline(String hostName); TikTokLive.isHostNameValidAsync(String hostName); instead you can use ``` TikTokLive.requests().fetchLiveUserData("Mike").getUserStatus() ```

Commit:2d260dd
Author:JW

- refactor of the Http client Changes: Http-client settings in configure method ``` TikTokLive.newClient("X") .configure(liveClientSettings -> { var httpSetting = liveClientSettings.getHttpSettings(); httpSetting.setTimeout(Duration.ofSeconds(12)); }); ``` `TikTokLive.requests()` Easy and quick way of making http request to tiktok ``` var giftsResponse =TikTokLive.request.fetchGiftsData(); ``` Removed: TikTokLive.isLiveOnline(String hostName); TikTokLive.isHostNameValidAsync(String hostName); instead you can use ``` TikTokLive.requests().fetchLiveUserData("Mike").getUserStatus() ```

Commit:0bb8edf
Author:JW

Including toUser in TikTokGiftEvent

Commit:3eed982
Author:JW

Changes: - TikTokHttpResponseEvent - Fixed User attributes in CommentEvent - Redesign .onMapper method

Commit:8299066
Author:JW

Changes: updated structure of WebcastLinkLayerMessage in proto file

Commit:4dd866c
Author:JW

Changes: onCustomEvent() <- registering custom events onMapping() <- custom mappings check out 'CustomMappingExample' more gifs has been added exceptions are more explicit

Commit:3832db1
Author:JW

Changes: onCustomEvent() <- registering custom events onMapping() <- custom mappings check out 'CustomMappingExample' more gifs has been added exceptions are more explicit

Commit:46d5f15
Author:JW

.

Commit:1977cbe
Author:JW

Changes: New Events - onLiveUnpaused() - onRoomInfo() triggered when LiveRoomInfo got updated Removed: - clientSettings.setHandleExistingEvents - onRoom Replaced with onRoomInfo event - onRoomUserInfo Replaced with onRoomInfo event Gifts: - onGift event was not triggered for the more expensive gifts - onGiftCombo with more expensive gifts was stuck in the GiftSendType.Begin state Fixed: - setPrintToConsole(false) was not disabling logs

Commit:6d268c4
Author:JW

Changes: Generated new Gifts Json TikTokLive.isLiveOnline() new method for checking if live if online TikTokLive.isLiveOnlineAsync()

Commit:de27e71
Author:JW

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

Commit:65a2d5c
Author:JW

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

Commit:9f4c1c8
Author:JW

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

Commit:f0d7cb0
Author:JW

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

Commit:f55cbca
Author:JW

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

Commit:6e092dd
Author:JW

Changes: LiveRoomInfo + new method getConnectionState() getting current state of connection + ListenersManager getBindingModels() renamed to getListeners() + Introducing documentation, each public interface got small documentation + New property in config .setSessionId() + New event: onReconnecting() Bugs: CommentEvent was throwing mapping exception

Commit:4a15714
Author:JW

Changes: `TikTokEventListener` new method of listening events see it at TestApplication/ListenerExample.java Bugs: - Fixed bug: Websocket was sending ping after it was closed

Commit:1aff710
Author:JW

Changes: `onWebsocketMessage()` TikTokWebsocketMessageEvent new event that is triggered when new ProtocolBuffer message come from TikTok server. Should be mainly use for debuging purpose Bugs: - Fixed bug: WebcastSocialMessage was always triggering `TikTokShareEvent` events such as `TikTokLikeEvent`, `TikTokFollowEvent`, `TikTokShareEvent`, `TikTokJoinEvent` was ignored - Fixed bug: Websocket was disconnecting when there was no incoming events for the while. Fixed by implementing background loop that pinging TikTok server every few ms. - Fixed bug: Disconnect method was not working

Commit:26c7db8
Author:JW

Fix messages - WebcastSocialMessage - ImDeleteMessage

Commit:2391b12
Author:JW

Fix Message parsing for - LikeMessage - MessageWebcastGiftMessage - MessageWebcastChatMessage

Commit:4b9e531
Author:JW

Events handling

Commit:a58612d
Author:JW

Initial commit