20 class MatchGameNamesTask;
33 TwitchAPI(
const std::shared_ptr<User>& user);
71 typedef std::function<void(TwitchAPI* source, TTV_ErrorCode ec, const std::shared_ptr<StreamInfo>& result)>
GetStreamInfoCallback;
80 typedef std::function<void(TwitchAPI* source, const std::string& str, TTV_ErrorCode ec, const std::shared_ptr<GameInfoList>& result)>
GetGameNameListCallback;
std::function< void(TwitchAPI *source, TTV_ErrorCode ec, ChannelInfo &&result)> GetChannelInfoCallback
Definition: twitchapi.h:65
std::function< void(TwitchAPI *source, TTV_ErrorCode ec)> RunCommercialCallback
Definition: twitchapi.h:77
std::function< void(TwitchAPI *source, TTV_ErrorCode ec, const std::shared_ptr< StreamInfo > &result)> GetStreamInfoCallback
Definition: twitchapi.h:71
TTV_ErrorCode SetStreamInfo(ChannelId channelId, const std::string &streamTitle, const std::string &gameName, SetStreamInfoCallback &&callback)
Definition: twitchapi.h:29
TTV_ErrorCode GetStreamInfo(ChannelId channelId, GetStreamInfoCallback &&callback)
TTV_ErrorCode GetIngestServerList(GetIngestServerListCallback &&callback)
std::function< void(TwitchAPI *source, TTV_ErrorCode ec, const std::shared_ptr< ArchivingState > &result)> GetChannelRecordingStatusCallback
Definition: twitchapi.h:74
TTV_ErrorCode GetChannelInfo(GetChannelInfoCallback &&callback)
std::string url
Definition: twitchapi.h:45
std::string loginName
Definition: twitchapi.h:43
TTV_ErrorCode RunCommercial(ChannelId channelId, uint32_t timeBreakSeconds, RunCommercialCallback &&callback)
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
std::string displayName
Definition: twitchapi.h:44
TTV_ErrorCode GetGameNameList(const std::string &str, GetGameNameListCallback &&callback)
virtual std::string GetLoggerName() const override
std::function< void(TwitchAPI *source, TTV_ErrorCode ec)> SetStreamInfoCallback
Definition: twitchapi.h:68
GetGameNameListCallback mNextGameNamesCallback
Definition: twitchapi.h:90
Definition: component.h:50
std::weak_ptr< User > mUser
Definition: twitchapi.h:87
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
std::function< void(TwitchAPI *source, const std::string &str, TTV_ErrorCode ec, const std::shared_ptr< GameInfoList > &result)> GetGameNameListCallback
Definition: twitchapi.h:80
Definition: twitchapi.h:50
std::function< void(TwitchAPI *source, TTV_ErrorCode ec, std::vector< IngestServer > &&result)> GetIngestServerListCallback
Definition: twitchapi.h:83
Definition: twitchapi.h:56
uint32_t ChannelId
Definition: coretypes.h:23
static const char * CurrentApiVersionString()
static std::string GetComponentName()
Definition: twitchapi.h:35
MetaDataEventClass
Definition: twitchapi.h:53
Definition: twitchapi.h:55
std::string mNextGameNamesQuery
Definition: twitchapi.h:89
Definition: twitchapi.h:40
std::string streamKey
Definition: twitchapi.h:42
Definition: twitchapi.h:57
std::shared_ptr< MatchGameNamesTask > mOutstandingMatchGameNamesTask
Definition: twitchapi.h:88
TTV_ErrorCode GetChannelRecordingStatus(GetChannelRecordingStatusCallback &&callback)