21 class ChatAPITaskHost;
32 using BanUserCallback = std::function<void(TTV_ErrorCode ec, BanUserError&& error)>;
34 using ModUserCallback = std::function<void(TTV_ErrorCode ec, ModUserError&& error)>;
56 virtual std::string
GetLoggerName()
const override {
return "ChatAPITaskHost"; }
uint32_t UserId
Definition: coretypes.h:22
TTV_ErrorCode ModUser(UserId userId, ChannelId channelId, const std::string &modUserName, ModUserCallback &&callback)
std::function< void(TTV_ErrorCode ec, std::vector< std::string > &&modNames, std::string &&nextCursor)> FetchChannelModeratorsCallback
Definition: chatapitaskhost.h:37
TTV_ErrorCode FetchGlobalBadges(const std::string &language, FetchBadgesCallback &&callback)
Definition: chatapitaskhost.h:29
virtual std::string GetLoggerName() const override
Definition: chatapitaskhost.h:56
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
std::function< void(TTV_ErrorCode ec, ModUserError &&error)> ModUserCallback
Definition: chatapitaskhost.h:34
TTV_ErrorCode FetchChannelModerators(ChannelId channelId, const std::string &cursor, FetchChannelModeratorsCallback &&callback)
TTV_ErrorCode UpdateUserColor(UserId userId, const std::string &color, UpdateUserColorCallback &&callback)
Definition: component.h:50
std::shared_ptr< UserRepository > mUserRepository
Definition: chatapitaskhost.h:59
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
TTV_ErrorCode FetchChannelBadges(ChannelId channelId, const std::string &language, FetchBadgesCallback &&callback)
TTV_ErrorCode BanUser(UserId userId, ChannelId channelId, const std::string &bannedUserName, uint32_t duration, BanUserCallback &&callback)
void SetUserRepository(const std::shared_ptr< UserRepository > &repository)
Definition: chatapitaskhost.h:53
std::function< void(TTV_ErrorCode ec)> UpdateUserColorCallback
Definition: chatapitaskhost.h:36
std::function< void(TTV_ErrorCode ec, BanUserError &&error)> BanUserCallback
Definition: chatapitaskhost.h:32
TTV_ErrorCode UnbanUser(UserId userId, ChannelId channelId, const std::string &unbannedUserName, UnbanUserCallback &&callback)
std::function< void(TTV_ErrorCode ec, UnbanUserError &&error)> UnbanUserCallback
Definition: chatapitaskhost.h:33
TTV_ErrorCode UnmodUser(UserId userId, ChannelId channelId, const std::string &unmodUserName, UnmodUserCallback &&callback)
uint32_t ChannelId
Definition: coretypes.h:23
std::function< void(TTV_ErrorCode ec, UnmodUserError &&error)> UnmodUserCallback
Definition: chatapitaskhost.h:35
std::function< void(TTV_ErrorCode ec, BadgeSet &&result)> FetchBadgesCallback
Definition: chatapitaskhost.h:38