class io.github.jwdeveloper.tiktok.client.mappers.handlers.TikTokGiftEventHandler
Signature
Section titled “Signature”public class TikTokGiftEventHandlerConstructors
Section titled “Constructors”TikTokGiftEventHandler
Section titled “TikTokGiftEventHandler”@Injectpublic TikTokGiftEventHandler(GiftsManager giftsManager, TikTokRoomInfo tikTokRoomInfo)The constructor the container resolves. Annotated because the clock-injecting overload below makes this class ambiguous to the injector, which then refuses to register it at all.
Parameters
Section titled “Parameters”giftsManager(GiftsManager)tikTokRoomInfo(TikTokRoomInfo)
TikTokGiftEventHandler
Section titled “TikTokGiftEventHandler”public TikTokGiftEventHandler(GiftsManager giftsManager, TikTokRoomInfo tikTokRoomInfo, long comboTimeoutMillis, LongSupplier clock)Parameters
Section titled “Parameters”giftsManager(GiftsManager)tikTokRoomInfo(TikTokRoomInfo)comboTimeoutMillis(long)clock(LongSupplier)
Methods
Section titled “Methods”handleGift
Section titled “handleGift”public List<TikTokEvent> handleGift(WebcastGiftMessage currentMessage)Parameters
Section titled “Parameters”currentMessage(WebcastGiftMessage)
Returns
Section titled “Returns”List<TikTokEvent>
handleGifts
Section titled “handleGifts”@SneakyThrowspublic MappingResult handleGifts(byte[] msg, String name, LiveMapperHelper helper)Parameters
Section titled “Parameters”msg(byte[])name(String)helper(LiveMapperHelper)