|
Twitch SDK (Internal)
|
#include <chatuserbadges.h>
Public Types | |
| enum | State { State::Uninitialized, State::Initialized, State::ShuttingDown, State::Inert } |
Public Member Functions | |
| ChatUserBadges (const std::shared_ptr< User > &user) | |
| virtual | ~ChatUserBadges () |
| virtual std::string | GetLoggerName () const override |
| std::string | GetBadgesMessageTag (ChannelId channelId) |
| void | SetBadgesMessageTag (ChannelId channelId, const std::string &badgesMessageTag) |
| virtual TTV_ErrorCode | Initialize () override |
| virtual void | SetTaskRunner (std::shared_ptr< TaskRunner > taskRunner) |
| std::shared_ptr< TaskRunner > | GetTaskRunner () |
| virtual State | GetState () const override |
| virtual void | Update () override |
| virtual TTV_ErrorCode | Shutdown () override |
Static Public Member Functions | |
| static std::string | GetComponentName () |
Protected Member Functions | |
| virtual void | OnUserLogInComplete (TTV_ErrorCode ec) |
| virtual void | OnUserLogOutComplete (TTV_ErrorCode ec) |
| virtual void | OnUserInfoFetchComplete (TTV_ErrorCode ec) |
| virtual void | OnUserAuthenticationIssue (std::shared_ptr< const OAuthToken > oauthToken, TTV_ErrorCode ec) |
| virtual void | CompleteShutdown () override |
| void | Log (TTV_MessageLevel level, const char *format,...) |
| TTV_ErrorCode | StartTask (std::shared_ptr< Task > task) |
| void | CompleteTask (Task *task) |
| bool | IsTaskRunning (Task *task) const |
| virtual void | SetState (State state) |
| virtual void | SetClientState (State state) |
| virtual void | SetServerState (State state) |
| virtual bool | CheckShutdown () |
Protected Attributes | |
| std::weak_ptr< User > | mUser |
| bool | mOAuthIssue |
| Whether or not the internal updates of the component are on hold because of an issue with the OAuth token. More... | |
| ClientServerValue< State > | mState |
| std::shared_ptr< TaskRunner > | mTaskRunner |
| std::vector< std::shared_ptr< Task > > | mRunningTasks |
| std::mutex | mTaskMutex |
| uint64_t | mShutdownTimeMilliseconds |
Private Attributes | |
| std::unordered_map< ChannelId, std::string > | mBadges |
| The mapping of channel ID to the badges message tag. More... | |
Stores the IRC v3 message tag for user badges per channel.
|
stronginherited |
| ttv::chat::ChatUserBadges::ChatUserBadges | ( | const std::shared_ptr< User > & | user | ) |
|
virtual |
|
protectedvirtualinherited |
Reimplemented in ttv::PubSubClient, ttv::ComponentContainer, ttv::broadcast::Streamer, ttv::social::FriendList, ttv::chat::ChatUserThreads, ttv::UserRepository, ttv::social::Presence, ttv::broadcast::IngestTester, ttv::User, ttv::chat::ChatChannelSet, ttv::chat::BitsConfigRepository, ttv::chat::ChatUserBlockList, ttv::ChannelRepository, ttv::ChannelStatus, ttv::PubSubComponentBase, and ttv::ProfileImageStatus.
|
overrideprotectedvirtualinherited |
Reimplemented from ttv::Component.
Reimplemented in ttv::PubSubClient, ttv::broadcast::Streamer, ttv::social::FriendList, ttv::chat::ChatUserThread, ttv::chat::ChatUserThreads, ttv::social::Presence, ttv::PubSubComponent< LISTENER >, ttv::PubSubComponent< IChatChannelPropertyListener >, ttv::PubSubComponent< IChannelChatRoomManagerListener >, ttv::PubSubComponent< IChannelListener >, ttv::PubSubComponent< IFollowersListener >, ttv::PubSubComponent< IChatRoomListener >, ttv::PubSubComponent< UserEmoticonSetsListener >, ttv::PubSubComponent< IChatRaidListener >, ttv::PubSubComponent< IBitsListener >, ttv::PubSubComponent< IChatRoomNotificationsListener >, ttv::PubSubComponent< ISubscribersListener >, ttv::broadcast::IngestTester, ttv::chat::ChatChannelSet, ttv::chat::ChatRaid, ttv::ChannelStatus, and ttv::PubSubComponentBase.
|
protectedinherited |
| std::string ttv::chat::ChatUserBadges::GetBadgesMessageTag | ( | ChannelId | channelId | ) |
|
inlinestatic |
|
overridevirtual |
Implements ttv::Component.
|
overridevirtualinherited |
Implements ttv::IComponent.
|
inlineinherited |
|
overridevirtualinherited |
Reimplemented from ttv::Component.
Reimplemented in ttv::broadcast::Streamer, ttv::PubSubClient, ttv::social::FriendList, ttv::broadcast::IngestTester, ttv::chat::ChatUserThreads, ttv::social::Presence, ttv::chat::BitsStatus, ttv::chat::UserEmoticonSets, ttv::ChannelStatus, and ttv::PubSubComponentBase.
|
protectedinherited |
|
protectedinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented in ttv::social::FriendList, ttv::social::Presence, and ttv::chat::ChatUserThreads.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
| void ttv::chat::ChatUserBadges::SetBadgesMessageTag | ( | ChannelId | channelId, |
| const std::string & | badgesMessageTag | ||
| ) |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
virtualinherited |
Reimplemented in ttv::broadcast::Streamer, and ttv::social::FriendList.
|
overridevirtualinherited |
Implements ttv::IComponent.
Reimplemented in ttv::PubSubClient, ttv::broadcast::Streamer, ttv::ComponentContainer, ttv::social::FriendList, ttv::UserRepository, ttv::social::Presence, ttv::broadcast::IngestTester, ttv::User, ttv::chat::ChatUserThreads, ttv::chat::BitsConfigRepository, ttv::chat::ChatUserBlockList, ttv::chat::ChatReplay, ttv::chat::ChatChannelSet, ttv::ChannelRepository, ttv::chat::BitsStatus, ttv::chat::UserEmoticonSets, and ttv::PubSubComponentBase.
|
protectedinherited |
|
overridevirtualinherited |
Implements ttv::IComponent.
Reimplemented in ttv::PubSubClient, ttv::broadcast::Streamer, ttv::ComponentContainer, ttv::social::FriendList, ttv::chat::ChatUserThread, ttv::UserRepository, ttv::social::Presence, ttv::broadcast::IngestTester, ttv::User, ttv::chat::ChatUserThreads, ttv::chat::BitsConfigRepository, ttv::chat::ChatUserBlockList, ttv::chat::ChatReplay, ttv::chat::ChatChannelSet, ttv::ChannelRepository, ttv::chat::ChatRaid, ttv::chat::BitsStatus, ttv::chat::UserEmoticonSets, ttv::ChannelStatus, ttv::chat::ChatRoom, and ttv::ProfileImageStatus.
|
private |
The mapping of channel ID to the badges message tag.
|
protectedinherited |
Whether or not the internal updates of the component are on hold because of an issue with the OAuth token.
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
mutableprotectedinherited |
|
protectedinherited |
|
protectedinherited |
1.8.13