#include <channelchatroommanager.h>
◆ AddRoomCallback
Used with AddNewChatRoom().
- Parameters
-
| [in] | ec |
- TTV_EC_SUCCESS: The channel has created a new chat room.
- TTV_EC_WEBAPI_RESULT_INVALID_JSON: Something went wrong when trying to create a new chat room.
- TTV_EC_GRAPHQL_ERROR: Received an error code from the back-end.
|
| [in] | error | Error object describing the reason why creating the room failed. |
| [in] | info | The information of the newly created room. |
◆ DisposerFunc
◆ FetchRoomsInfoCallback
Used with FetchRoomsInfo().
- Parameters
-
| [in] | ec |
- TTV_EC_SUCCESS: The channel has created a new chat room.
- TTV_EC_WEBAPI_RESULT_INVALID_JSON: Something went wrong when trying to create a new chat room.
|
| [in] | infos | A list of the information for chat rooms on the channel. |
◆ JoinCallback
Used with JoinChatRooms().
- Parameters
-
| [in] | ec |
- TTV_EC_SUCCESS: The rooms was successfully joined.
- TTV_EC_WEBAPI_RESULT_INVALID_JSON: Something went wrong when trying to join the rooms.
|
◆ LeaveCallback
Used with LeaveChatRooms().
- Parameters
-
| [in] | ec |
- TTV_EC_SUCCESS: The rooms was successfully left.
- TTV_EC_WEBAPI_RESULT_INVALID_JSON: Something went wrong when trying to leave the rooms.
|
◆ State
| Enumerator |
|---|
| Uninitialized | |
| Initialized | |
| ShuttingDown | |
| Inert | The component doesn't require shutting down.
|
◆ ChannelChatRoomManager()
| ttv::chat::ChannelChatRoomManager::ChannelChatRoomManager |
( |
const std::shared_ptr< User > & |
user, |
|
|
ChannelId |
channelId |
|
) |
| |
◆ AddNewChatRoom()
| virtual TTV_ErrorCode ttv::chat::ChannelChatRoomManager::AddNewChatRoom |
( |
const std::string & |
roomName, |
|
|
const std::string & |
topic, |
|
|
bool |
isPreviewable, |
|
|
RoomRole |
minimumAllowedRole, |
|
|
const AddRoomCallback & |
callback |
|
) |
| |
|
overridevirtual |
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).
- Parameters
-
| [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. |
- Returns
- TTV_EC_SUCCESS: We've sent the request to add a new chat room.
- TTV_EC_SHUT_DOWN: The chat room object is not initialized.
- TTV_EC_NEED_TO_LOGIN: The user is not properly logged in.
- TTV_EC_INVALID_CHANNEL_ID: ChannelChatRoomManager's user id does not match channel id (currently the user must own the channel to add a new room)
Implements ttv::chat::IChannelChatRoomManager.
◆ AddTopic()
| virtual void ttv::PubSubComponentBase::AddTopic |
( |
const std::string & |
topic | ) |
|
|
protectedvirtualinherited |
◆ CheckShutdown()
| virtual bool ttv::PubSubComponentBase::CheckShutdown |
( |
| ) |
|
|
overrideprotectedvirtualinherited |
◆ CompleteShutdown()
|
|
inlineoverridevirtualinherited |
◆ CompleteTask()
| void ttv::Component::CompleteTask |
( |
Task * |
task | ) |
|
|
protectedinherited |
◆ Dispose()
| virtual TTV_ErrorCode ttv::chat::ChannelChatRoomManager::Dispose |
( |
| ) |
|
|
overridevirtual |
◆ FetchChatRoomsInfo()
Return all of the information for chat rooms on this channel.
- Parameters
-
| [in] | callback | Callback when the API call returns, receives an error code and a list of information for the chat rooms of the channel. |
- Returns
- TTV_EC_SUCCESS: We've sent the request to fetch the chat rooms information.
- TTV_EC_SHUT_DOWN: The chat room object is not initialized.
- TTV_EC_NEED_TO_LOGIN: The user is not properly logged in.
Implements ttv::chat::IChannelChatRoomManager.
◆ GetComponentName()
| static std::string ttv::chat::ChannelChatRoomManager::GetComponentName |
( |
| ) |
|
|
inlinestatic |
◆ GetLoggerName()
| virtual std::string ttv::chat::ChannelChatRoomManager::GetLoggerName |
( |
| ) |
const |
|
overridevirtual |
◆ GetState()
| virtual State ttv::Component::GetState |
( |
| ) |
const |
|
overridevirtualinherited |
◆ GetTaskRunner()
| std::shared_ptr<TaskRunner> ttv::Component::GetTaskRunner |
( |
| ) |
|
|
inlineinherited |
◆ Initialize()
◆ IsTaskRunning()
| bool ttv::Component::IsTaskRunning |
( |
Task * |
task | ) |
const |
|
protectedinherited |
◆ JoinChatRooms()
Join the chat rooms for a channel.
- Parameters
-
| [in] | callback | Callback when the API call returns, receives an error code. |
- Returns
- TTV_EC_SUCCESS: We've sent the request to join the channel.
- TTV_EC_SHUT_DOWN: The chat room object is not initialized.
- TTV_EC_NEED_TO_LOGIN: The user is not properly logged in.
Implements ttv::chat::IChannelChatRoomManager.
◆ LeaveChatRooms()
Leave the chat rooms for a channel.
- Parameters
-
| [in] | callback | Callback when the API call returns, receives an error code. |
- Returns
- TTV_EC_SUCCESS: We've sent the request to leave the channel.
- TTV_EC_SHUT_DOWN: The chat room object is not initialized.
- TTV_EC_NEED_TO_LOGIN: The user is not properly logged in.
Implements ttv::chat::IChannelChatRoomManager.
◆ Log()
| void ttv::UserComponent::Log |
( |
TTV_MessageLevel |
level, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| |
|
protectedinherited |
◆ OnTopicListenerRemoved()
| virtual void ttv::PubSubComponentBase::OnTopicListenerRemoved |
( |
const std::string & |
topic, |
|
|
TTV_ErrorCode |
ec |
|
) |
| |
|
virtualinherited |
◆ OnTopicMessageReceived()
| void ttv::chat::ChannelChatRoomManager::OnTopicMessageReceived |
( |
const std::string & |
topic, |
|
|
const ttv::json::Value & |
jVal |
|
) |
| |
|
overridevirtual |
◆ OnTopicSubscribeStateChanged()
◆ OnUserAuthenticationIssue()
| virtual void ttv::UserComponent::OnUserAuthenticationIssue |
( |
std::shared_ptr< const OAuthToken > |
oauthToken, |
|
|
TTV_ErrorCode |
ec |
|
) |
| |
|
protectedvirtualinherited |
◆ OnUserInfoFetchComplete()
| virtual void ttv::UserComponent::OnUserInfoFetchComplete |
( |
TTV_ErrorCode |
ec | ) |
|
|
protectedvirtualinherited |
◆ OnUserLogInComplete()
| virtual void ttv::UserComponent::OnUserLogInComplete |
( |
TTV_ErrorCode |
ec | ) |
|
|
protectedvirtualinherited |
◆ OnUserLogOutComplete()
| virtual void ttv::UserComponent::OnUserLogOutComplete |
( |
TTV_ErrorCode |
ec | ) |
|
|
protectedvirtualinherited |
◆ SetClientState()
| virtual void ttv::Component::SetClientState |
( |
State |
state | ) |
|
|
protectedvirtualinherited |
◆ SetDisposer()
| void ttv::PubSubComponentBase::SetDisposer |
( |
DisposerFunc && |
func | ) |
|
|
inlineinherited |
◆ SetListener()
◆ SetServerState()
| virtual void ttv::Component::SetServerState |
( |
State |
state | ) |
|
|
protectedvirtualinherited |
◆ SetState()
| virtual void ttv::Component::SetState |
( |
State |
state | ) |
|
|
protectedvirtualinherited |
◆ SetTaskRunner()
| virtual void ttv::Component::SetTaskRunner |
( |
std::shared_ptr< TaskRunner > |
taskRunner | ) |
|
|
virtualinherited |
◆ Shutdown()
◆ StartTask()
◆ SubscribeTopics()
| virtual TTV_ErrorCode ttv::PubSubComponentBase::SubscribeTopics |
( |
| ) |
|
|
protectedvirtualinherited |
◆ Update()
| virtual void ttv::Component::Update |
( |
| ) |
|
|
overridevirtualinherited |
Implements ttv::IComponent.
Reimplemented in ttv::PubSubClient, ttv::broadcast::Streamer, ttv::ComponentContainer, ttv::social::FriendList, ttv::chat::ChatUserThread, ttv::UserRepository, ttv::social::Presence, ttv::broadcast::IngestTester, ttv::User, ttv::chat::ChatUserThreads, ttv::chat::BitsConfigRepository, ttv::chat::ChatUserBlockList, ttv::chat::ChatReplay, ttv::chat::ChatChannelSet, ttv::ChannelRepository, ttv::chat::ChatRaid, ttv::chat::BitsStatus, ttv::chat::UserEmoticonSets, ttv::ChannelStatus, ttv::chat::ChatRoom, and ttv::ProfileImageStatus.
◆ mChannelId
| ChannelId ttv::chat::ChannelChatRoomManager::mChannelId |
|
private |
◆ mDisposerFunc
◆ mListener
◆ mOAuthIssue
| bool ttv::UserComponent::mOAuthIssue |
|
protectedinherited |
Whether or not the internal updates of the component are on hold because of an issue with the OAuth token.
◆ mPubSub
| std::shared_ptr<PubSubClient> ttv::PubSubComponentBase::mPubSub |
|
protectedinherited |
◆ mPubSubTopic
| std::string ttv::chat::ChannelChatRoomManager::mPubSubTopic |
|
private |
◆ mPubSubTopicListener
◆ mPubSubTopicListenerHelper
◆ mPubSubTopics
| std::vector<std::string> ttv::PubSubComponentBase::mPubSubTopics |
|
protectedinherited |
◆ mRunningTasks
| std::vector<std::shared_ptr<Task> > ttv::Component::mRunningTasks |
|
protectedinherited |
◆ mShutdownTimeMilliseconds
| uint64_t ttv::Component::mShutdownTimeMilliseconds |
|
protectedinherited |
◆ mState
◆ mTaskMutex
| std::mutex ttv::Component::mTaskMutex |
|
mutableprotectedinherited |
◆ mTaskRunner
| std::shared_ptr<TaskRunner> ttv::Component::mTaskRunner |
|
protectedinherited |
◆ mUser
| std::weak_ptr<User> ttv::UserComponent::mUser |
|
protectedinherited |
◆ mUserId
| UserId ttv::chat::ChannelChatRoomManager::mUserId |
|
private |
The documentation for this class was generated from the following file: