frankvHoof93 / TikTokLiveSharp

Port of TikTok live library for C#
https://vanhoof.dev
Other
139 stars 27 forks source link

isPendingStreak(data) C# #61

Closed zandotc1 closed 5 months ago

zandotc1 commented 5 months ago

How to use pending (isPendingStreak(data) similar to nodejs? to prevent the gift totalizer from calculating the previous accumulated quantity (+)current quantity.

Nodejs: Repeat: x${data.repeatCount.toLocaleString()}
Cost: ${(data.diamondCount * data.repeatCount).toLocaleString()} Diamonds

HugoB07 commented 5 months ago

hello, I think you talk about the e.StreakEnd ?

zandotc1 commented 5 months ago

Console: rokamarker12, Gift: Rose(1), ID: 5655 rokamarker12, Gift: Rose(2), ID: 5655 rokamarker12, Gift: Rose(3), ID: 5655

but: rokamarket12 Sent x3 Rose!

zandotc1 commented 5 months ago

Like this?

if (e.StreakEnd) { function(); } else { anhother function(); }

HugoB07 commented 5 months ago

https://github.com/frankvHoof93/TikTokLiveSharp/issues/11

check this issue because all gift have a 'type'

zandotc1 commented 5 months ago

Solved thx