Twitch SDK (Internal)
Public Types | Public Member Functions | Public Attributes | List of all members
ttv::chat::ChatChannelListenerProxy Struct Reference

#include <chatlistener.h>

Inheritance diagram for ttv::chat::ChatChannelListenerProxy:
ttv::chat::IChatChannelListener

Public Types

using ChatChannelStateChangedCallback = std::function< void(UserId userId, ChannelId channelId, ChatChannelState state, TTV_ErrorCode ec)>
 
using ChatChannelInfoChangedCallback = std::function< void(UserId userId, ChannelId channelId, const ChatChannelInfo &channelInfo)>
 
using ChatChannelRestrictionsChangedCallback = std::function< void(UserId userId, ChannelId channelId, const ChatChannelRestrictions &restrictions)>
 
using ChatChannelLocalUserChangedCallback = std::function< void(UserId userId, ChannelId channelId, const ChatUserInfo &userInfo)>
 
using ChatChannelSubscriptionNoticeReceivedCallback = std::function< void(UserId userId, ChannelId channelId, const SubscriptionNotice &notice)>
 
using ChatChannelFirstTimeChatterNoticeReceivedCallback = std::function< void(UserId userId, ChannelId channelId, const FirstTimeChatterNotice &notice)>
 
using ChatChannelRaidNoticeReceivedCallback = std::function< void(UserId userId, ChannelId channelId, const RaidNotice &notice)>
 
using ChatChannelUnraidNoticeReceivedCallback = std::function< void(UserId userId, ChannelId channelId, const UnraidNotice &notice)>
 
using ChatChannelMessagesReceivedCallback = std::function< void(UserId userId, ChannelId channelId, const std::vector< LiveChatMessage > &messageList)>
 
using ChatChannelMessagesClearedCallback = std::function< void(UserId userId, ChannelId channelId)>
 
using ChatChannelUserMessagesClearedCallback = std::function< void(UserId userId, ChannelId channelId, UserId clearUserId)>
 
using ChatChannelHostTargetChangedCallback = std::function< void(UserId userId, ChannelId channelId, const std::string &targetChannel, uint32_t numViewers)>
 
using ChatChannelNoticeReceivedCallback = std::function< void(UserId userId, ChannelId channelId, const std::string &noticeId, const std::map< std::string, std::string > &params)>
 
using ChatChannelSetBroadcasterLanguageChatEnabledCompleteCallback = std::function< void(UserId userId, ChannelId channelId, TTV_ErrorCode ec)>
 

Public Member Functions

virtual void ChatChannelStateChanged (UserId userId, ChannelId channelId, ChatChannelState state, TTV_ErrorCode ec) override
 
virtual void ChatChannelInfoChanged (UserId userId, ChannelId channelId, const ChatChannelInfo &channelInfo) override
 
virtual void ChatChannelRestrictionsChanged (UserId userId, ChannelId channelId, const ChatChannelRestrictions &restrictions) override
 
virtual void ChatChannelLocalUserChanged (UserId userId, ChannelId channelId, const ChatUserInfo &userInfo) override
 
virtual void ChatChannelSubscriptionNoticeReceived (UserId userId, ChannelId channelId, const SubscriptionNotice &notice) override
 
virtual void ChatChannelFirstTimeChatterNoticeReceived (UserId userId, ChannelId channelId, const FirstTimeChatterNotice &notice) override
 
virtual void ChatChannelRaidNoticeReceived (UserId userId, ChannelId channelId, const RaidNotice &notice) override
 
virtual void ChatChannelUnraidNoticeReceived (UserId userId, ChannelId channelId, const UnraidNotice &notice) override
 
virtual void ChatChannelMessagesReceived (UserId userId, ChannelId channelId, const std::vector< LiveChatMessage > &messageList) override
 
virtual void ChatChannelMessagesCleared (UserId userId, ChannelId channelId) override
 
virtual void ChatChannelUserMessagesCleared (UserId userId, ChannelId channelId, UserId clearUserId) override
 
virtual void ChatChannelHostTargetChanged (UserId userId, ChannelId channelId, const std::string &targetChannel, uint32_t numViewers) override
 
virtual void ChatChannelNoticeReceived (UserId userId, ChannelId channelId, const std::string &noticeId, const std::map< std::string, std::string > &params) override
 

Public Attributes

ChatChannelStateChangedCallback chatChannelStateChangedCallback
 
ChatChannelInfoChangedCallback chatChannelInfoChangedCallback
 
ChatChannelRestrictionsChangedCallback chatChannelRestrictionsChangedCallback
 
ChatChannelLocalUserChangedCallback chatChannelLocalUserChangedCallback
 
ChatChannelSubscriptionNoticeReceivedCallback chatChannelSubscriptionNoticeReceivedCallback
 
ChatChannelFirstTimeChatterNoticeReceivedCallback chatChannelFirstTimeChatterNoticeReceivedCallback
 
ChatChannelRaidNoticeReceivedCallback chatChannelRaidNoticeReceivedCallback
 
ChatChannelUnraidNoticeReceivedCallback chatChannelUnraidNoticeReceivedCallback
 
ChatChannelMessagesReceivedCallback chatChannelMessagesReceivedCallback
 
ChatChannelMessagesClearedCallback chatChannelMessagesClearedCallback
 
ChatChannelUserMessagesClearedCallback chatChannelUserMessagesClearedCallback
 
ChatChannelHostTargetChangedCallback chatChannelHostTargetChangedCallback
 
ChatChannelNoticeReceivedCallback chatChannelNoticeReceivedCallback
 
ChatChannelSetBroadcasterLanguageChatEnabledCompleteCallback chatChannelSetBroadcasterLanguageChatEnabledCompleteCallback
 

Member Typedef Documentation

◆ ChatChannelFirstTimeChatterNoticeReceivedCallback

◆ ChatChannelHostTargetChangedCallback

using ttv::chat::ChatChannelListenerProxy::ChatChannelHostTargetChangedCallback = std::function<void(UserId userId, ChannelId channelId, const std::string& targetChannel, uint32_t numViewers)>

◆ ChatChannelInfoChangedCallback

using ttv::chat::ChatChannelListenerProxy::ChatChannelInfoChangedCallback = std::function<void(UserId userId, ChannelId channelId, const ChatChannelInfo& channelInfo)>

◆ ChatChannelLocalUserChangedCallback

using ttv::chat::ChatChannelListenerProxy::ChatChannelLocalUserChangedCallback = std::function<void(UserId userId, ChannelId channelId, const ChatUserInfo& userInfo)>

◆ ChatChannelMessagesClearedCallback

◆ ChatChannelMessagesReceivedCallback

using ttv::chat::ChatChannelListenerProxy::ChatChannelMessagesReceivedCallback = std::function<void(UserId userId, ChannelId channelId, const std::vector<LiveChatMessage>& messageList)>

◆ ChatChannelNoticeReceivedCallback

using ttv::chat::ChatChannelListenerProxy::ChatChannelNoticeReceivedCallback = std::function<void(UserId userId, ChannelId channelId, const std::string& noticeId, const std::map<std::string, std::string>& params)>

◆ ChatChannelRaidNoticeReceivedCallback

using ttv::chat::ChatChannelListenerProxy::ChatChannelRaidNoticeReceivedCallback = std::function<void(UserId userId, ChannelId channelId, const RaidNotice& notice)>

◆ ChatChannelRestrictionsChangedCallback

◆ ChatChannelSetBroadcasterLanguageChatEnabledCompleteCallback

◆ ChatChannelStateChangedCallback

◆ ChatChannelSubscriptionNoticeReceivedCallback

◆ ChatChannelUnraidNoticeReceivedCallback

◆ ChatChannelUserMessagesClearedCallback

using ttv::chat::ChatChannelListenerProxy::ChatChannelUserMessagesClearedCallback = std::function<void(UserId userId, ChannelId channelId, UserId clearUserId)>

Member Function Documentation

◆ ChatChannelFirstTimeChatterNoticeReceived()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelFirstTimeChatterNoticeReceived ( UserId  userId,
ChannelId  channelId,
const FirstTimeChatterNotice notice 
)
inlineoverridevirtual

◆ ChatChannelHostTargetChanged()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelHostTargetChanged ( UserId  userId,
ChannelId  channelId,
const std::string &  targetChannel,
uint32_t  numViewers 
)
inlineoverridevirtual

◆ ChatChannelInfoChanged()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelInfoChanged ( UserId  userId,
ChannelId  channelId,
const ChatChannelInfo channelInfo 
)
inlineoverridevirtual

◆ ChatChannelLocalUserChanged()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelLocalUserChanged ( UserId  userId,
ChannelId  channelId,
const ChatUserInfo userInfo 
)
inlineoverridevirtual

◆ ChatChannelMessagesCleared()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelMessagesCleared ( UserId  userId,
ChannelId  channelId 
)
inlineoverridevirtual

Fired when all messages in the channel should be cleared.

Implements ttv::chat::IChatChannelListener.

◆ ChatChannelMessagesReceived()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelMessagesReceived ( UserId  userId,
ChannelId  channelId,
const std::vector< LiveChatMessage > &  messageList 
)
inlineoverridevirtual

◆ ChatChannelNoticeReceived()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelNoticeReceived ( UserId  userId,
ChannelId  channelId,
const std::string &  noticeId,
const std::map< std::string, std::string > &  params 
)
inlineoverridevirtual

◆ ChatChannelRaidNoticeReceived()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelRaidNoticeReceived ( UserId  userId,
ChannelId  channelId,
const RaidNotice notice 
)
inlineoverridevirtual

◆ ChatChannelRestrictionsChanged()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelRestrictionsChanged ( UserId  userId,
ChannelId  channelId,
const ChatChannelRestrictions restrictions 
)
inlineoverridevirtual

◆ ChatChannelStateChanged()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelStateChanged ( UserId  userId,
ChannelId  channelId,
ChatChannelState  state,
TTV_ErrorCode  ec 
)
inlineoverridevirtual

◆ ChatChannelSubscriptionNoticeReceived()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelSubscriptionNoticeReceived ( UserId  userId,
ChannelId  channelId,
const SubscriptionNotice notice 
)
inlineoverridevirtual

◆ ChatChannelUnraidNoticeReceived()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelUnraidNoticeReceived ( UserId  userId,
ChannelId  channelId,
const UnraidNotice notice 
)
inlineoverridevirtual

◆ ChatChannelUserMessagesCleared()

virtual void ttv::chat::ChatChannelListenerProxy::ChatChannelUserMessagesCleared ( UserId  userId,
ChannelId  channelId,
UserId  clearUserId 
)
inlineoverridevirtual

Fired when all messages from the given user should be cleared in the given channel.

Implements ttv::chat::IChatChannelListener.

Member Data Documentation

◆ chatChannelFirstTimeChatterNoticeReceivedCallback

ChatChannelFirstTimeChatterNoticeReceivedCallback ttv::chat::ChatChannelListenerProxy::chatChannelFirstTimeChatterNoticeReceivedCallback

◆ chatChannelHostTargetChangedCallback

ChatChannelHostTargetChangedCallback ttv::chat::ChatChannelListenerProxy::chatChannelHostTargetChangedCallback

◆ chatChannelInfoChangedCallback

ChatChannelInfoChangedCallback ttv::chat::ChatChannelListenerProxy::chatChannelInfoChangedCallback

◆ chatChannelLocalUserChangedCallback

ChatChannelLocalUserChangedCallback ttv::chat::ChatChannelListenerProxy::chatChannelLocalUserChangedCallback

◆ chatChannelMessagesClearedCallback

ChatChannelMessagesClearedCallback ttv::chat::ChatChannelListenerProxy::chatChannelMessagesClearedCallback

◆ chatChannelMessagesReceivedCallback

ChatChannelMessagesReceivedCallback ttv::chat::ChatChannelListenerProxy::chatChannelMessagesReceivedCallback

◆ chatChannelNoticeReceivedCallback

ChatChannelNoticeReceivedCallback ttv::chat::ChatChannelListenerProxy::chatChannelNoticeReceivedCallback

◆ chatChannelRaidNoticeReceivedCallback

ChatChannelRaidNoticeReceivedCallback ttv::chat::ChatChannelListenerProxy::chatChannelRaidNoticeReceivedCallback

◆ chatChannelRestrictionsChangedCallback

ChatChannelRestrictionsChangedCallback ttv::chat::ChatChannelListenerProxy::chatChannelRestrictionsChangedCallback

◆ chatChannelSetBroadcasterLanguageChatEnabledCompleteCallback

ChatChannelSetBroadcasterLanguageChatEnabledCompleteCallback ttv::chat::ChatChannelListenerProxy::chatChannelSetBroadcasterLanguageChatEnabledCompleteCallback

◆ chatChannelStateChangedCallback

ChatChannelStateChangedCallback ttv::chat::ChatChannelListenerProxy::chatChannelStateChangedCallback

◆ chatChannelSubscriptionNoticeReceivedCallback

ChatChannelSubscriptionNoticeReceivedCallback ttv::chat::ChatChannelListenerProxy::chatChannelSubscriptionNoticeReceivedCallback

◆ chatChannelUnraidNoticeReceivedCallback

ChatChannelUnraidNoticeReceivedCallback ttv::chat::ChatChannelListenerProxy::chatChannelUnraidNoticeReceivedCallback

◆ chatChannelUserMessagesClearedCallback

ChatChannelUserMessagesClearedCallback ttv::chat::ChatChannelListenerProxy::chatChannelUserMessagesClearedCallback

The documentation for this struct was generated from the following file: