|
Twitch SDK (Internal)
|
#include <twitchapi.h>
Classes | |
| struct | ChannelInfo |
Static Public Member Functions | |
| static std::string | GetComponentName () |
| static const char * | CurrentApiVersionString () |
Protected Member Functions | |
| 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 () |
| virtual void | CompleteShutdown () |
Protected Attributes | |
| ClientServerValue< State > | mState |
| std::shared_ptr< TaskRunner > | mTaskRunner |
| std::vector< std::shared_ptr< Task > > | mRunningTasks |
| std::mutex | mTaskMutex |
| uint64_t | mShutdownTimeMilliseconds |
Private Attributes | |
| std::weak_ptr< User > | mUser |
| std::shared_ptr< MatchGameNamesTask > | mOutstandingMatchGameNamesTask |
| std::string | mNextGameNamesQuery |
| GetGameNameListCallback | mNextGameNamesCallback |
A convenience component for managing requests. Some requests are not associated with a User so this is not a proper UserComponent since it needs to be hosted independently from a User.
| struct ttv::broadcast::TwitchAPI::ChannelInfo |
| typedef std::function<void(TwitchAPI* source, TTV_ErrorCode ec, ChannelInfo&& result)> ttv::broadcast::TwitchAPI::GetChannelInfoCallback |
| typedef std::function<void(TwitchAPI* source, TTV_ErrorCode ec, const std::shared_ptr<ArchivingState>& result)> ttv::broadcast::TwitchAPI::GetChannelRecordingStatusCallback |
| typedef std::function<void(TwitchAPI* source, const std::string& str, TTV_ErrorCode ec, const std::shared_ptr<GameInfoList>& result)> ttv::broadcast::TwitchAPI::GetGameNameListCallback |
| typedef std::function<void(TwitchAPI* source, TTV_ErrorCode ec, std::vector<IngestServer>&& result)> ttv::broadcast::TwitchAPI::GetIngestServerListCallback |
| typedef std::function<void(TwitchAPI* source, TTV_ErrorCode ec, const std::shared_ptr<StreamInfo>& result)> ttv::broadcast::TwitchAPI::GetStreamInfoCallback |
| typedef std::function<void(TwitchAPI* source, TTV_ErrorCode ec)> ttv::broadcast::TwitchAPI::RunCommercialCallback |
| typedef std::function<void(TwitchAPI* source, TTV_ErrorCode ec)> ttv::broadcast::TwitchAPI::SetStreamInfoCallback |
|
stronginherited |
| ttv::broadcast::TwitchAPI::TwitchAPI | ( | ) |
| ttv::broadcast::TwitchAPI::TwitchAPI | ( | const std::shared_ptr< User > & | user | ) |
|
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.
|
protectedvirtualinherited |
Reimplemented in ttv::PubSubClient, ttv::ComponentContainer, ttv::broadcast::Streamer, ttv::social::FriendList, ttv::chat::ChatUserThread, ttv::chat::ChatUserThreads, ttv::UserComponent, ttv::UserRepository, 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::User, ttv::chat::ChatChannelSet, ttv::chat::BitsConfigRepository, ttv::chat::ChatRaid, ttv::ChannelRepository, ttv::chat::ChatReplay, ttv::ChannelStatus, and ttv::PubSubComponentBase.
|
protectedinherited |
|
static |
| TTV_ErrorCode ttv::broadcast::TwitchAPI::GetChannelInfo | ( | GetChannelInfoCallback && | callback | ) |
| TTV_ErrorCode ttv::broadcast::TwitchAPI::GetChannelRecordingStatus | ( | GetChannelRecordingStatusCallback && | callback | ) |
|
inlinestatic |
| TTV_ErrorCode ttv::broadcast::TwitchAPI::GetGameNameList | ( | const std::string & | str, |
| GetGameNameListCallback && | callback | ||
| ) |
| TTV_ErrorCode ttv::broadcast::TwitchAPI::GetIngestServerList | ( | GetIngestServerListCallback && | callback | ) |
|
overridevirtual |
Implements ttv::Component.
|
overridevirtualinherited |
Implements ttv::IComponent.
| TTV_ErrorCode ttv::broadcast::TwitchAPI::GetStreamInfo | ( | ChannelId | channelId, |
| GetStreamInfoCallback && | callback | ||
| ) |
|
inlineinherited |
|
overridevirtualinherited |
Implements ttv::IComponent.
Reimplemented in ttv::broadcast::Streamer, ttv::PubSubClient, ttv::ComponentContainer, ttv::UserComponent, ttv::UserRepository, ttv::social::FriendList, ttv::broadcast::IngestTester, ttv::User, ttv::chat::ChatUserThreads, ttv::social::Presence, ttv::chat::ChatReplay, ttv::chat::BitsStatus, ttv::chat::UserEmoticonSets, ttv::ChannelStatus, and ttv::PubSubComponentBase.
|
protectedinherited |
| TTV_ErrorCode ttv::broadcast::TwitchAPI::RunCommercial | ( | ChannelId | channelId, |
| uint32_t | timeBreakSeconds, | ||
| RunCommercialCallback && | callback | ||
| ) |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
|
protectedvirtualinherited |
| TTV_ErrorCode ttv::broadcast::TwitchAPI::SetStreamInfo | ( | ChannelId | channelId, |
| const std::string & | streamTitle, | ||
| const std::string & | gameName, | ||
| SetStreamInfoCallback && | callback | ||
| ) |
|
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 |
|
private |
|
private |
|
protectedinherited |
|
protectedinherited |
|
protectedinherited |
|
mutableprotectedinherited |
|
protectedinherited |
|
private |
1.8.13