|
Twitch SDK (Internal)
|
#include <chatroommessagehandler.h>
Classes | |
| class | ICallbacks |
Public Member Functions | |
| ChatRoomMessageHandler () | |
| bool | HandleMessage (const std::string &message) |
| void | SetCallbacks (const std::shared_ptr< ICallbacks > &callbacks) |
Private Attributes | |
| std::shared_ptr< ICallbacks > | mCallbacks |
Class that receives messages to parse out special commands such as /ban before being sent to IChatRoom::SendMessage. Custom callback functions must inherit ICallbacks and passed in through the constructor first. Messages being sent will be passed in through HandleMessage().
|
strong |
| ttv::chat::ChatRoomMessageHandler::ChatRoomMessageHandler | ( | ) |
| bool ttv::chat::ChatRoomMessageHandler::HandleMessage | ( | const std::string & | message | ) |
Takes in outgoing chat room messages and call the corresponding callback function based on the contents of the message.
| [in] | message | The message being sent to the chat room. |
|
inline |
Sets the callbacks functions that are called when HandleMessage is called.
| [in] | callbacks | Pointer to the inherited ICallbacks class. |
|
private |
1.8.13