#include <chatroommessagehandler.h>
Create your own callbacks class that inherits from this, then pass in that class to the ChatMessageHandler constructor.
◆ ~ICallbacks()
| virtual ttv::chat::ChatRoomMessageHandler::ICallbacks::~ICallbacks |
( |
| ) |
|
|
virtualdefault |
◆ BanUser()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::BanUser |
( |
const std::string & |
userName | ) |
|
|
pure virtual |
◆ EmotesOnlyMode()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::EmotesOnlyMode |
( |
bool |
turnOn | ) |
|
|
pure virtual |
Called for valid '/emoteonly' and '/emoteonlyoff' commands. Typically should call ChatRoom::SetMode().
- Parameters
-
| [in] | turnOn | If true, we want to enable emotes-only mode in the room. If false, we want to disable emote-only mode. |
- Returns
- True if the message was handled properly, else false.
Implemented in ttv::binding::java::JavaChatRoomMessageHandlerCallbacksProxy.
◆ Help()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::Help |
( |
| ) |
|
|
pure virtual |
◆ ListModerators()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::ListModerators |
( |
| ) |
|
|
pure virtual |
◆ ListRooms()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::ListRooms |
( |
| ) |
|
|
pure virtual |
◆ MalformedCommand()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::MalformedCommand |
( |
CommandError |
command | ) |
|
|
pure virtual |
◆ ModUser()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::ModUser |
( |
const std::string & |
userName | ) |
|
|
pure virtual |
◆ PassThrough()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::PassThrough |
( |
const std::string & |
message | ) |
|
|
pure virtual |
◆ R9kMode()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::R9kMode |
( |
bool |
turnOn | ) |
|
|
pure virtual |
Called for valid '/r9kbeta' and '/r9kbetaoff' commands. Typically should call ChatRoom::SetMode().
- Parameters
-
| [in] | turnOn | If true, we want to enable r9k mode in the room. If false, we want to disable r9k mode. |
- Returns
- True if the message was handled properly, else false.
Implemented in ttv::binding::java::JavaChatRoomMessageHandlerCallbacksProxy.
◆ SetTopic()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::SetTopic |
( |
const std::string & |
topic | ) |
|
|
pure virtual |
◆ SetUserColor()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::SetUserColor |
( |
const std::string & |
color | ) |
|
|
pure virtual |
◆ SlowMode()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::SlowMode |
( |
bool |
turnOn, |
|
|
uint32_t |
durationSeconds |
|
) |
| |
|
pure virtual |
Called for valid '/slow' and '/slowoff' commands. Typically should call ChatRoom::SetMode().
- Parameters
-
| [in] | turnOn | If true, we want to enable slow mode in the room. If false, we want to disable slow mode. |
| [in] | durationSeconds | The number of seconds a viewer has to wait between sending messages. Value is ignored if we're turning slow mode off. |
- Returns
- True if the message was handled properly, else false.
Implemented in ttv::binding::java::JavaChatRoomMessageHandlerCallbacksProxy.
◆ TimeoutUser()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::TimeoutUser |
( |
const std::string & |
userName, |
|
|
uint32_t |
duration |
|
) |
| |
|
pure virtual |
◆ UnbanUser()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::UnbanUser |
( |
const std::string & |
userName | ) |
|
|
pure virtual |
◆ UnmodUser()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::UnmodUser |
( |
const std::string & |
userName | ) |
|
|
pure virtual |
◆ UntimeoutUser()
| virtual bool ttv::chat::ChatRoomMessageHandler::ICallbacks::UntimeoutUser |
( |
const std::string & |
userName | ) |
|
|
pure virtual |
The documentation for this class was generated from the following file: