Use New 7TV Cosmetics System (#4512)
* feat(seventv): use new cosmetics system * chore: add changelog entry * fix: old `clang-format` * fix: small suggestions pt1 * refactor: add 7tv api wrapper * fix: small clang-tidy things * fix: remove unused constants * fix: old clangtidy * refactor: rename * fix: increase interval to 60s * fix: newline * fix: Twitch * docs: add comment * fix: remove v2 badges endpoint * fix: deadlock This is actually really sad. * fix: remove api entry * fix: old clang-format * Sort functions in SeventvBadges.hpp/cpp * Remove unused vector include * Add comments to SeventvBadges.hpp functions * Rename `addBadge` to `registerBadge` * fix: cleanup eventloop * ci(test): add timeout --------- Co-authored-by: Felanbird <41973452+Felanbird@users.noreply.github.com> Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
@@ -254,6 +254,12 @@ private:
|
||||
void showLoginMessage();
|
||||
/** Joins (subscribes to) a Twitch channel for updates on BTTV. */
|
||||
void joinBttvChannel() const;
|
||||
/**
|
||||
* Indicates an activity to 7TV in this channel for this user.
|
||||
* This is done at most once every 60s.
|
||||
*/
|
||||
void updateSevenTVActivity();
|
||||
void listenSevenTVCosmetics();
|
||||
|
||||
/**
|
||||
* @brief Sets the live status of this Twitch channel
|
||||
@@ -372,6 +378,12 @@ private:
|
||||
*/
|
||||
size_t seventvUserTwitchConnectionIndex_;
|
||||
|
||||
/**
|
||||
* The next moment in time to signal activity in this channel to 7TV.
|
||||
* Or: Up until this moment we don't need to send activity.
|
||||
*/
|
||||
QDateTime nextSeventvActivity_;
|
||||
|
||||
/** The platform of the last live emote update ("7TV", "BTTV", "FFZ"). */
|
||||
QString lastLiveUpdateEmotePlatform_;
|
||||
/** The actor name of the last live emote update. */
|
||||
|
||||
Reference in New Issue
Block a user