mirror of
https://github.com/jwdeveloper/TikTokLiveJava.git
synced 2026-02-27 08:49:40 -05:00
Minor changes to new social/gift events!
This commit is contained in:
@@ -45,18 +45,10 @@ public class TikTokGiftComboEvent extends TikTokGiftEvent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static TikTokGiftComboEvent of(Gift gift, int combo, GiftComboStateType comboState) {
|
public static TikTokGiftComboEvent of(Gift gift, int combo, GiftComboStateType comboState) {
|
||||||
return new TikTokGiftComboEvent(
|
return new TikTokGiftComboEvent(gift, new User(0L, "Test", new Picture("")), WebcastGiftMessage.newBuilder().setComboCount(combo).build(), comboState);
|
||||||
gift,
|
|
||||||
new User(0L, "Test", new Picture("")),
|
|
||||||
WebcastGiftMessage.newBuilder().setComboCount(combo).build(),
|
|
||||||
comboState);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static TikTokGiftComboEvent of(Gift gift, User host, User user, int combo, GiftComboStateType comboState) {
|
public static TikTokGiftComboEvent of(Gift gift, User host, User user, int combo, GiftComboStateType comboState) {
|
||||||
return new TikTokGiftComboEvent(gift,
|
return new TikTokGiftComboEvent(gift, host, user, combo, comboState);
|
||||||
host,
|
|
||||||
user,
|
|
||||||
combo,
|
|
||||||
comboState);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -48,8 +48,7 @@ public class TikTokJoinEvent extends TikTokHeaderEvent {
|
|||||||
totalUsers = msg.getMemberCount();
|
totalUsers = msg.getMemberCount();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static TikTokJoinEvent of(String userName)
|
public static TikTokJoinEvent of(String userName) {
|
||||||
{
|
|
||||||
return new TikTokJoinEvent(WebcastMemberMessage.newBuilder()
|
return new TikTokJoinEvent(WebcastMemberMessage.newBuilder()
|
||||||
.setUser(io.github.jwdeveloper.tiktok.messages.data.User.newBuilder()
|
.setUser(io.github.jwdeveloper.tiktok.messages.data.User.newBuilder()
|
||||||
.setUsername(userName)
|
.setUsername(userName)
|
||||||
|
|||||||
@@ -56,8 +56,7 @@ public class TikTokLikeEvent extends TikTokHeaderEvent
|
|||||||
totalLikes = msg.getTotal();
|
totalLikes = msg.getTotal();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static TikTokLikeEvent of(String userName, int likes)
|
public static TikTokLikeEvent of(String userName, int likes) {
|
||||||
{
|
|
||||||
return new TikTokLikeEvent(WebcastLikeMessage.newBuilder()
|
return new TikTokLikeEvent(WebcastLikeMessage.newBuilder()
|
||||||
.setCount(likes)
|
.setCount(likes)
|
||||||
.setTotal(likes)
|
.setTotal(likes)
|
||||||
|
|||||||
Reference in New Issue
Block a user