|
Twitch SDK (Internal)
|
#include <useremoticonsets.h>
Public Types | |
| using | FetchEmoticonSetsCallback = std::function< void(TTV_ErrorCode ec, const std::vector< EmoticonSet > &result)> |
| using | DisposerFunc = std::function< void()> |
| enum | State { State::Uninitialized, State::Initialized, State::ShuttingDown, State::Inert } |
Public Member Functions | |
| UserEmoticonSets (const std::shared_ptr< User > &user, const TokenizationOptions &options) | |
| virtual | ~UserEmoticonSets () |
| virtual TTV_ErrorCode | Initialize () override |
| virtual void | Update () override |
| virtual TTV_ErrorCode | Shutdown () override |
| virtual std::string | GetLoggerName () const override |
| TTV_ErrorCode | GetUserEmoticonSets (std::vector< EmoticonSet > &sets) |
| TTV_ErrorCode | FetchUserEmoticonSets (bool forceFetch, const FetchEmoticonSetsCallback &callback) |
| TokenizationOptions | GetTokenizationOptions () const |
| void | OnTopicSubscribeStateChanged (const std::string &topic, PubSubClient::SubscribeState::Enum state, TTV_ErrorCode ec) override |
| void | OnTopicMessageReceived (const std::string &topic, const ttv::json::Value &jVal) override |
| virtual void | CompleteShutdown () override |
| void | SetListener (const std::shared_ptr< UserEmoticonSetsListener > &listener) |
| void | SetDisposer (DisposerFunc &&func) |
| TTV_ErrorCode | Dispose () |
| virtual void | OnTopicListenerRemoved (const std::string &topic, TTV_ErrorCode ec) |
| virtual void | SetTaskRunner (std::shared_ptr< TaskRunner > taskRunner) |
| std::shared_ptr< TaskRunner > | GetTaskRunner () |
| virtual State | GetState () const override |
Static Public Member Functions | |
| static std::string | GetComponentName () |
Protected Member Functions | |
| virtual bool | CheckShutdown () override |
| virtual void | AddTopic (const std::string &topic) |
| virtual TTV_ErrorCode | SubscribeTopics () |
| 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) |
| 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) |
Protected Attributes | |
| std::shared_ptr< UserEmoticonSetsListener > | mListener |
| std::shared_ptr< PubSubClient > | mPubSub |
| std::shared_ptr< PubSubTopicListener > | mPubSubTopicListener |
| std::shared_ptr< PubSubTopicListenerHelper > | mPubSubTopicListenerHelper |
| DisposerFunc | mDisposerFunc |
| std::vector< std::string > | mPubSubTopics |
| 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 | |
| CallbackQueue< FetchEmoticonSetsCallback > | mFetchUserEmoticonSetsCallbacks |
| std::vector< EmoticonSet > | mUserEmoticonSets |
| std::string | mPubSubTopic |
| RetryTimer | mFetchRetryTimer |
| TokenizationOptions | mTokenizationOptions |
| bool | mEmoticonFetchInFlight |
Fetches and keeps track of the list of emoticons available for a user.
|
inherited |
| using ttv::chat::UserEmoticonSets::FetchEmoticonSetsCallback = std::function<void(TTV_ErrorCode ec, const std::vector<EmoticonSet>& result)> |
|
stronginherited |
| ttv::chat::UserEmoticonSets::UserEmoticonSets | ( | const std::shared_ptr< User > & | user, |
| const TokenizationOptions & | options | ||
| ) |
|
virtual |
|
protectedvirtualinherited |
|
overrideprotectedvirtualinherited |
Reimplemented from ttv::Component.
Reimplemented in ttv::ChannelStatus, and ttv::ProfileImageStatus.
|
inlineoverridevirtualinherited |
Reimplemented from ttv::PubSubComponentBase.
|
protectedinherited |
|
inherited |
| TTV_ErrorCode ttv::chat::UserEmoticonSets::FetchUserEmoticonSets | ( | bool | forceFetch, |
| const FetchEmoticonSetsCallback & | callback | ||
| ) |
Fetches and returns the user's currently available emoticon sets.
| [in] | forceFetch | If true, will force a refetch for the latest values. If false, will returned currently stored values. |
| [in] | callback | Function to be called that will take in the list of user emoticon sets. |
|
inlinestatic |
|
overridevirtual |
Implements ttv::PubSubComponentBase.
|
overridevirtualinherited |
Implements ttv::IComponent.
|
inlineinherited |
|
inline |
Returns the currently configured tokenization options.
| TTV_ErrorCode ttv::chat::UserEmoticonSets::GetUserEmoticonSets | ( | std::vector< EmoticonSet > & | sets | ) |
Returns the user's currently available emoticon sets.
|
overridevirtual |
Reimplemented from ttv::PubSubComponentBase.
|
protectedinherited |
|
protectedinherited |
|
virtualinherited |
|
overridevirtual |
Listens for new subscriptions to kick off a fetch for the newest emoticons.
Implements ttv::PubSubComponentBase.
|
overridevirtual |
Implements ttv::PubSubComponentBase.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
Reimplemented in ttv::social::FriendList, ttv::social::Presence, and ttv::chat::ChatUserThreads.
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
virtualinherited |
Reimplemented in ttv::broadcast::Streamer, and ttv::social::FriendList.
|
overridevirtual |
Reimplemented from ttv::PubSubComponentBase.
|
protectedinherited |
|
protectedvirtualinherited |
|
overridevirtual |
Reimplemented from ttv::Component.
|
protectedinherited |
|
private |
|
private |
|
private |
|
protectedinherited |
|
protectedinherited |
Whether or not the internal updates of the component are on hold because of an issue with the OAuth token.
|
protectedinherited |
|
private |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
mutableprotectedinherited |
|
protectedinherited |
|
private |
|
protectedinherited |
|
private |
1.8.13