I'm trying to get the number of likes a user has given during a combo once it has ended.
I first listen for Likes on a TikTok LIVE channel using a LiveClientBuilder and the .onLike() method and then I get the total like number though TikTokLiveEvent.getLikes().
If I go for smaller combo amounts, like 5 or 10, it works as expected: once I stop tapping the screen I get the number of likes I've given in a row. But if I try sending more than 15 likes in a combo I start getting different calls to the method of 15 likes each, as if they were part of different combos.
I've haven't found any way of getting the total number, knowing the combo has ended through other classes of the library, and after asking about this issue I was told that I need to handle it myself.
I was wondering if it could be handled directly by the library because new users will not be expecting this behavior (it is also not being warned anywhere, at least that I have seen it). On top of that it would be easier to implement and mantain if it's handled by TikTokLiveJava, instead of having everyone handle the combo logic our way, and perhaps you can get whether the like combo has finished or not directly from the API, which is something that we can't do.
I'm trying to get the number of likes a user has given during a combo once it has ended.
I first listen for Likes on a TikTok LIVE channel using a
LiveClientBuilderand the.onLike()method and then I get the total like number thoughTikTokLiveEvent.getLikes().If I go for smaller combo amounts, like 5 or 10, it works as expected: once I stop tapping the screen I get the number of likes I've given in a row. But if I try sending more than 15 likes in a combo I start getting different calls to the method of 15 likes each, as if they were part of different combos.
I've haven't found any way of getting the total number, knowing the combo has ended through other classes of the library, and after asking about this issue I was told that I need to handle it myself.
I was wondering if it could be handled directly by the library because new users will not be expecting this behavior (it is also not being warned anywhere, at least that I have seen it). On top of that it would be easier to implement and mantain if it's handled by TikTokLiveJava, instead of having everyone handle the combo logic our way, and perhaps you can get whether the like combo has finished or not directly from the API, which is something that we can't do.