|
Twitch SDK (Internal)
|
#include <ichannelchatroommanager.h>
Public Types | |
| using | JoinCallback = std::function< void(TTV_ErrorCode ec)> |
| using | LeaveCallback = std::function< void(TTV_ErrorCode ec)> |
| using | AddRoomCallback = std::function< void(TTV_ErrorCode ec, CreateRoomError &&error, ChatRoomInfo &&info)> |
| using | FetchRoomsInfoCallback = std::function< void(TTV_ErrorCode ec, std::vector< ChatRoomInfo > &&infos)> |
Public Member Functions | |
| virtual | ~IChannelChatRoomManager ()=default |
| virtual TTV_ErrorCode | Dispose ()=0 |
| virtual TTV_ErrorCode | AddNewChatRoom (const std::string &roomName, const std::string &topic, bool isPreviewable, RoomRole minimumAllowedRole, const AddRoomCallback &callback)=0 |
| virtual TTV_ErrorCode | JoinChatRooms (const JoinCallback &callback)=0 |
| virtual TTV_ErrorCode | LeaveChatRooms (const LeaveCallback &callback)=0 |
| virtual TTV_ErrorCode | FetchChatRoomsInfo (const FetchRoomsInfoCallback &callback)=0 |
The interface to manage a channel's chat rooms.
| using ttv::chat::IChannelChatRoomManager::AddRoomCallback = std::function<void(TTV_ErrorCode ec, CreateRoomError&& error, ChatRoomInfo&& info)> |
Used with AddNewChatRoom().
| [in] | ec |
|
| [in] | error | Error object describing the reason why creating the room failed. |
| [in] | info | The information of the newly created room. |
| using ttv::chat::IChannelChatRoomManager::FetchRoomsInfoCallback = std::function<void(TTV_ErrorCode ec, std::vector<ChatRoomInfo>&& infos)> |
Used with FetchRoomsInfo().
| [in] | ec |
|
| [in] | infos | A list of the information for chat rooms on the channel. |
| using ttv::chat::IChannelChatRoomManager::JoinCallback = std::function<void(TTV_ErrorCode ec)> |
Used with JoinChatRooms().
| [in] | ec |
|
| using ttv::chat::IChannelChatRoomManager::LeaveCallback = std::function<void(TTV_ErrorCode ec)> |
Used with LeaveChatRooms().
| [in] | ec |
|
|
virtualdefault |
|
pure virtual |
Adds a new chat room for the channel. Currently to create a new room, the user must own the channel (userId and channelId must be the same).
| [in] | roomName | The name of the newly created room. |
| [in] | topic | The topic of the newly created room. |
| [in] | isPreviewable | Whether the newly created room will be previewable. |
| [in] | minimumAllowedRole | The minimum required role for a user to join the room. |
| [in] | callback | Callback when API call returns, receives an error code and the newly created room's information. |
Implemented in ttv::chat::ChannelChatRoomManager.
|
pure virtual |
This should be called when the application is done with the instance.
Implemented in ttv::chat::ChannelChatRoomManager.
|
pure virtual |
Return all of the information for chat rooms on this channel.
| [in] | callback | Callback when the API call returns, receives an error code and a list of information for the chat rooms of the channel. |
Implemented in ttv::chat::ChannelChatRoomManager.
|
pure virtual |
Join the chat rooms for a channel.
| [in] | callback | Callback when the API call returns, receives an error code. |
Implemented in ttv::chat::ChannelChatRoomManager.
|
pure virtual |
Leave the chat rooms for a channel.
| [in] | callback | Callback when the API call returns, receives an error code. |
Implemented in ttv::chat::ChannelChatRoomManager.
1.8.13