|
Twitch SDK (Internal)
|
#include <chatgetemoticonstask.h>
Public Types | |
| using | Callback = std::function< void(ChatGetEmoticonsTask *source, TTV_ErrorCode ec, std::vector< EmoticonSet > &&result)> |
| typedef TTV_TaskCallback | TaskCallback |
Public Member Functions | |
| ChatGetEmoticonsTask (UserId userId, const std::string &oauthToken, Callback &&callback) | |
| virtual void | OnComplete () override |
| virtual void | Run () override |
| virtual void | Abort () |
Protected Member Functions | |
| virtual const char * | GetTaskName () const override |
| virtual void | FillHttpRequestInfo (HttpRequestInfo &requestInfo) override |
| virtual void | ProcessResponse (uint statusCode, const std::vector< char > &response) override |
| virtual bool | HeadersCallback (uint statusCode, const std::map< std::string, std::string > &headers) |
| virtual void | ResponseCallback (uint statusCode, const std::vector< char > &response) |
| virtual bool | ProcessHeaders (uint statusCode, const std::map< std::string, std::string > &headers) |
Static Protected Member Functions | |
| static bool | Is2XX (uint32_t statusCode) |
| static bool | Is3XX (uint32_t statusCode) |
| static bool | Is4XX (uint32_t statusCode) |
Protected Attributes | |
| TTV_ErrorCode | mTaskStatus |
| void * | mUserData |
| std::atomic_bool | mAborted |
Private Attributes | |
| std::vector< EmoticonSet > | mResult |
| Callback | mCallback |
| UserId | mUserId |
Fetches the emoticons in each emoticon set.
| using ttv::chat::ChatGetEmoticonsTask::Callback = std::function<void(ChatGetEmoticonsTask* source, TTV_ErrorCode ec, std::vector<EmoticonSet>&& result)> |
|
inherited |
| ttv::chat::ChatGetEmoticonsTask::ChatGetEmoticonsTask | ( | UserId | userId, |
| const std::string & | oauthToken, | ||
| Callback && | callback | ||
| ) |
Fetch all emoticon sets for the given user.
|
virtualinherited |
|
overrideprotectedvirtual |
Implements ttv::HttpTask.
|
inlineoverrideprotectedvirtual |
Implements ttv::Task.
|
protectedvirtualinherited |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
inlinestaticprotectedinherited |
|
overridevirtual |
Reimplemented from ttv::HttpTask.
|
protectedvirtualinherited |
|
overrideprotectedvirtual |
Reimplemented from ttv::HttpTask.
|
protectedvirtualinherited |
|
overridevirtualinherited |
Implements ttv::Task.
|
protectedinherited |
|
private |
|
private |
|
protectedinherited |
|
protectedinherited |
|
private |
1.8.13