mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 16:59:39 -05:00
made: settings.fetchGifts default to true
This commit is contained in:
@@ -78,6 +78,12 @@
|
||||
<version>1.3.0-Release</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.github.jwdeveloper.worker</groupId>
|
||||
<artifactId>extension-tester</artifactId>
|
||||
<version>1.3.0-Release</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<properties>
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
package io.github.jwdeveloper.tiktok;
|
||||
|
||||
import io.github.jwdeveloper.tiktok.data.events.gift.TikTokGiftEvent;
|
||||
import io.github.jwdeveloper.tiktok.live.LiveClient;
|
||||
|
||||
public class GiftTestingExample {
|
||||
|
||||
|
||||
public static void main(String[] args) throws Exception {
|
||||
LiveClient client = TikTokLive.newClient(SimpleExample.TIKTOK_HOSTNAME)
|
||||
.configure(liveClientSettings ->
|
||||
{
|
||||
// liveClientSettings.setOffline(true);
|
||||
})
|
||||
.onConnected((liveClient, event) ->
|
||||
{
|
||||
liveClient.getLogger().info("Connected");
|
||||
})
|
||||
.onGiftCombo((liveClient, event) ->
|
||||
{
|
||||
|
||||
})
|
||||
.onGift((liveClient, event) ->
|
||||
{
|
||||
liveClient.getLogger().info("New fakeGift: " + event.getGift());
|
||||
})
|
||||
.buildAndConnect();
|
||||
|
||||
var gifts = TikTokLive.gifts();
|
||||
var fakeGift = TikTokGiftEvent.of(gifts.getByName("Rose"));
|
||||
var fakeGift2 = TikTokGiftEvent.of("Rose", 1, 23);
|
||||
client.publishEvent(fakeGift);
|
||||
client.publishEvent(fakeGift2);
|
||||
}
|
||||
|
||||
|
||||
public void GetTesterBuilder() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void GetBuilder() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
package io.github.jwdeveloper.tiktok;
|
||||
|
||||
public class testerExample {
|
||||
public class TestingGiftsExample {
|
||||
}
|
||||
Reference in New Issue
Block a user