|
Twitch SDK (Internal)
|
#include <ichatraid.h>
Public Types | |
| using | JoinCallback = std::function< void(TTV_ErrorCode ec)> |
| using | LeaveCallback = std::function< void(TTV_ErrorCode ec)> |
| using | StartCallback = std::function< void(TTV_ErrorCode ec)> |
| using | CancelCallback = std::function< void(TTV_ErrorCode ec)> |
Public Member Functions | |
| virtual | ~IChatRaid ()=default |
| virtual TTV_ErrorCode | Dispose ()=0 |
| virtual TTV_ErrorCode | Join (const std::string &raidId, const JoinCallback &callback)=0 |
| virtual TTV_ErrorCode | Leave (const std::string &raidId, const LeaveCallback &callback)=0 |
| virtual TTV_ErrorCode | Start (UserId targetUserId, const StartCallback &callback)=0 |
| virtual TTV_ErrorCode | Cancel (const CancelCallback &callback)=0 |
The interface for chat raid functionality.
A chat raid is a mass transition of users from one channel to another.
| using ttv::chat::IChatRaid::CancelCallback = std::function<void(TTV_ErrorCode ec)> |
| using ttv::chat::IChatRaid::JoinCallback = std::function<void(TTV_ErrorCode ec)> |
| using ttv::chat::IChatRaid::LeaveCallback = std::function<void(TTV_ErrorCode ec)> |
| using ttv::chat::IChatRaid::StartCallback = std::function<void(TTV_ErrorCode ec)> |
|
virtualdefault |
|
pure virtual |
As a channel moderator or broadcaster, this cancels a raid. This only works if a raid has been started and is currently underway.
| [in] | targetUserId | The id of the user that is being targetted by the raid. |
| [in] | callback | Callback function called after cancelling the raid. Can be null. |
Implemented in ttv::chat::ChatRaid.
|
pure virtual |
This should be called when the application is done with the instance.
Implemented in ttv::chat::ChatRaid.
|
pure virtual |
As a viewer, joins the raid.
| [in] | raidId | The id of the raid that is being joined. |
| [in] | callback | Callback function called after joining the raid. Can be null. |
Implemented in ttv::chat::ChatRaid.
|
pure virtual |
As a viewer, leaves the raid. You can only leave a raid if you have previously joined.
| [in] | raidId | The id of the raid that is being left. |
| [in] | callback | Callback function called after leaving the raid. Can be null. |
Implemented in ttv::chat::ChatRaid.
|
pure virtual |
As a channel moderator or broadcaster, this starts a raid on the channel targeting the given user.
| [in] | targetUserId | The id of the user that is being targetted by the raid. |
| [in] | callback | Callback function called after starting the raid. Can be null. |
Implemented in ttv::chat::ChatRaid.
1.8.13