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

#include <chatconnection.h>

Inheritance diagram for ttv::chat::ChatConnectionListenerProxy:
ttv::chat::ChatConnection::Listener

Public Types

typedef std::function< void(ChatConnection *source)> OnConnectedFunc
 
typedef std::function< void(ChatConnection *source, TTV_ErrorCode ec)> OnConnectionFailedFunc
 
typedef std::function< void(ChatConnection *source, TTV_ErrorCode ec)> OnConnectionLostFunc
 
typedef std::function< void(ChatConnection *source, const std::string &username, const std::map< std::string, std::string > &messageTags)> OnClearedFunc
 
typedef std::function< void(ChatConnection *source, const std::string &username, const std::string &message, const std::map< std::string, std::string > &messageTags, bool action)> OnPrivateMessageReceivedFunc
 
typedef std::function< void(ChatConnection *source, const std::string &message, const std::map< std::string, std::string > &messageTags)> OnUserNoticeReceivedFunc
 
typedef std::function< void(ChatConnection *source, const std::map< std::string, std::string > &messageTags)> OnUserStateChangedFunc
 
typedef std::function< void(ChatConnection *source, const std::string &username, const std::string &message, const std::map< std::string, std::string > &messageTags, bool action)> OnWhisperReceivedFunc
 
typedef std::function< void(ChatConnection *source, const std::string &receivingUserName, const std::string &message, const std::map< std::string, std::string > &messageTags, bool action)> OnWhisperSentFunc
 
typedef std::function< void(ChatConnection *source, ChatChannelRestrictions)> OnChatRestrictionsChangedFunc
 
typedef std::function< void(ChatConnection *source, bool banned)> OnPermanentBanChangedFunc
 
typedef std::function< void(ChatConnection *source, bool temporarilyBanned, uint32_t timeout)> OnTemporaryBanChangedFunc
 
typedef std::function< void(ChatConnection *source, const std::string &username, const std::vector< EmoticonSetId > &emoticonSets)> OnEmoticonSetsChangedFunc
 
typedef std::function< void(ChatConnection *source, const std::string &username, const std::string &badgesMessageTag)> OnBadgesChangedFunc
 
typedef std::function< void(ChatConnection *source, const std::string &targetChannel, uint32_t numViewers)> OnHostTargetChangedFunc
 
typedef std::function< void(ChatConnection *source, const std::string &id, const std::map< std::string, std::string > &params)> OnNoticeReceivedFunc
 
typedef std::function< void(ChatConnection *source, const std::string &blockUserName, bool ignore)> OnIgnoreChangedFunc
 

Public Member Functions

virtual void OnConnected (ChatConnection *source) override
 
virtual void OnConnectionFailed (ChatConnection *source, TTV_ErrorCode ec) override
 
virtual void OnConnectionLost (ChatConnection *source, TTV_ErrorCode ec) override
 
virtual void OnCleared (ChatConnection *source, const std::string &username, const std::map< std::string, std::string > &messageTags) override
 
virtual void OnPrivateMessageReceived (ChatConnection *source, const std::string &username, const std::string &message, const std::map< std::string, std::string > &messageTags, bool action) override
 
virtual void OnUserNoticeReceived (ChatConnection *source, const std::string &message, const std::map< std::string, std::string > &messageTags) override
 
virtual void OnUserStateChanged (ChatConnection *source, const std::map< std::string, std::string > &messageTags) override
 
virtual void OnChatRestrictionsChanged (ChatConnection *source, const ChatChannelRestrictions &restrictions) override
 
virtual void OnPermanentBanChanged (ChatConnection *source, bool banned) override
 
virtual void OnTemporaryBanChanged (ChatConnection *source, bool temporarilyBanned, uint32_t timeout) override
 
virtual void OnBadgesChanged (ChatConnection *source, const std::string &username, const std::string &badgesMessageTag) override
 
virtual void OnHostTargetChanged (ChatConnection *source, const std::string &targetChannel, uint32_t numViewers) override
 
virtual void OnNoticeReceived (ChatConnection *source, const std::string &id, const std::map< std::string, std::string > &params) override
 
virtual void OnIgnoreChanged (ChatConnection *source, const std::string &blockUserName, bool ignore) override
 

Public Attributes

OnConnectedFunc mOnConnectedFunc
 
OnConnectionFailedFunc mOnConnectionFailedFunc
 
OnConnectionLostFunc mOnConnectionLostFunc
 
OnClearedFunc mOnClearedFunc
 
OnPrivateMessageReceivedFunc mOnPrivateMessageReceivedFunc
 
OnUserNoticeReceivedFunc mOnUserNoticeReceivedFunc
 
OnUserStateChangedFunc mOnUserStateChangedFunc
 
OnWhisperReceivedFunc mOnWhisperReceivedFunc
 
OnWhisperSentFunc mOnWhisperSentFunc
 
OnChatRestrictionsChangedFunc mOnChatRestrictionsChangedFunc
 
OnPermanentBanChangedFunc mOnPermanentBanChangedFunc
 
OnTemporaryBanChangedFunc mOnTemporaryBanChangedFunc
 
OnBadgesChangedFunc mOnBadgesChangedFunc
 
OnHostTargetChangedFunc mOnHostTargetChangedFunc
 
OnNoticeReceivedFunc mOnNoticeReceivedFunc
 
OnIgnoreChangedFunc mOnIgnoreChangedFunc
 

Detailed Description

A lambda proxy for ChatConnection::Listener.

Member Typedef Documentation

◆ OnBadgesChangedFunc

typedef std::function<void(ChatConnection* source, const std::string& username, const std::string& badgesMessageTag)> ttv::chat::ChatConnectionListenerProxy::OnBadgesChangedFunc

◆ OnChatRestrictionsChangedFunc

◆ OnClearedFunc

typedef std::function<void(ChatConnection* source, const std::string& username, const std::map<std::string, std::string>& messageTags)> ttv::chat::ChatConnectionListenerProxy::OnClearedFunc

◆ OnConnectedFunc

◆ OnConnectionFailedFunc

◆ OnConnectionLostFunc

◆ OnEmoticonSetsChangedFunc

typedef std::function<void(ChatConnection* source, const std::string& username, const std::vector<EmoticonSetId>& emoticonSets)> ttv::chat::ChatConnectionListenerProxy::OnEmoticonSetsChangedFunc

◆ OnHostTargetChangedFunc

typedef std::function<void(ChatConnection* source, const std::string& targetChannel, uint32_t numViewers)> ttv::chat::ChatConnectionListenerProxy::OnHostTargetChangedFunc

◆ OnIgnoreChangedFunc

typedef std::function<void(ChatConnection* source, const std::string& blockUserName, bool ignore)> ttv::chat::ChatConnectionListenerProxy::OnIgnoreChangedFunc

◆ OnNoticeReceivedFunc

typedef std::function<void(ChatConnection* source, const std::string& id, const std::map<std::string, std::string>& params)> ttv::chat::ChatConnectionListenerProxy::OnNoticeReceivedFunc

◆ OnPermanentBanChangedFunc

typedef std::function<void(ChatConnection* source, bool banned)> ttv::chat::ChatConnectionListenerProxy::OnPermanentBanChangedFunc

◆ OnPrivateMessageReceivedFunc

typedef std::function<void(ChatConnection* source, const std::string& username, const std::string& message, const std::map<std::string, std::string>& messageTags, bool action)> ttv::chat::ChatConnectionListenerProxy::OnPrivateMessageReceivedFunc

◆ OnTemporaryBanChangedFunc

typedef std::function<void(ChatConnection* source, bool temporarilyBanned, uint32_t timeout)> ttv::chat::ChatConnectionListenerProxy::OnTemporaryBanChangedFunc

◆ OnUserNoticeReceivedFunc

typedef std::function<void(ChatConnection* source, const std::string& message, const std::map<std::string, std::string>& messageTags)> ttv::chat::ChatConnectionListenerProxy::OnUserNoticeReceivedFunc

◆ OnUserStateChangedFunc

typedef std::function<void(ChatConnection* source, const std::map<std::string, std::string>& messageTags)> ttv::chat::ChatConnectionListenerProxy::OnUserStateChangedFunc

◆ OnWhisperReceivedFunc

typedef std::function<void(ChatConnection* source, const std::string& username, const std::string& message, const std::map<std::string, std::string>& messageTags, bool action)> ttv::chat::ChatConnectionListenerProxy::OnWhisperReceivedFunc

◆ OnWhisperSentFunc

typedef std::function<void(ChatConnection* source, const std::string& receivingUserName, const std::string& message, const std::map<std::string, std::string>& messageTags, bool action)> ttv::chat::ChatConnectionListenerProxy::OnWhisperSentFunc

Member Function Documentation

◆ OnBadgesChanged()

virtual void ttv::chat::ChatConnectionListenerProxy::OnBadgesChanged ( ChatConnection source,
const std::string &  username,
const std::string &  badgesMessageTag 
)
inlineoverridevirtual

◆ OnChatRestrictionsChanged()

virtual void ttv::chat::ChatConnectionListenerProxy::OnChatRestrictionsChanged ( ChatConnection source,
const ChatChannelRestrictions restrictions 
)
inlineoverridevirtual

◆ OnCleared()

virtual void ttv::chat::ChatConnectionListenerProxy::OnCleared ( ChatConnection source,
const std::string &  username,
const std::map< std::string, std::string > &  messageTags 
)
inlineoverridevirtual

◆ OnConnected()

virtual void ttv::chat::ChatConnectionListenerProxy::OnConnected ( ChatConnection source)
inlineoverridevirtual

◆ OnConnectionFailed()

virtual void ttv::chat::ChatConnectionListenerProxy::OnConnectionFailed ( ChatConnection source,
TTV_ErrorCode  ec 
)
inlineoverridevirtual

◆ OnConnectionLost()

virtual void ttv::chat::ChatConnectionListenerProxy::OnConnectionLost ( ChatConnection source,
TTV_ErrorCode  ec 
)
inlineoverridevirtual

◆ OnHostTargetChanged()

virtual void ttv::chat::ChatConnectionListenerProxy::OnHostTargetChanged ( ChatConnection source,
const std::string &  targetChannel,
uint32_t  numViewers 
)
inlineoverridevirtual

◆ OnIgnoreChanged()

virtual void ttv::chat::ChatConnectionListenerProxy::OnIgnoreChanged ( ChatConnection source,
const std::string &  blockUserName,
bool  ignore 
)
inlineoverridevirtual

◆ OnNoticeReceived()

virtual void ttv::chat::ChatConnectionListenerProxy::OnNoticeReceived ( ChatConnection source,
const std::string &  id,
const std::map< std::string, std::string > &  params 
)
inlineoverridevirtual

◆ OnPermanentBanChanged()

virtual void ttv::chat::ChatConnectionListenerProxy::OnPermanentBanChanged ( ChatConnection source,
bool  banned 
)
inlineoverridevirtual

◆ OnPrivateMessageReceived()

virtual void ttv::chat::ChatConnectionListenerProxy::OnPrivateMessageReceived ( ChatConnection source,
const std::string &  username,
const std::string &  message,
const std::map< std::string, std::string > &  messageTags,
bool  action 
)
inlineoverridevirtual

◆ OnTemporaryBanChanged()

virtual void ttv::chat::ChatConnectionListenerProxy::OnTemporaryBanChanged ( ChatConnection source,
bool  temporarilyBanned,
uint32_t  timeout 
)
inlineoverridevirtual

◆ OnUserNoticeReceived()

virtual void ttv::chat::ChatConnectionListenerProxy::OnUserNoticeReceived ( ChatConnection source,
const std::string &  message,
const std::map< std::string, std::string > &  messageTags 
)
inlineoverridevirtual

◆ OnUserStateChanged()

virtual void ttv::chat::ChatConnectionListenerProxy::OnUserStateChanged ( ChatConnection source,
const std::map< std::string, std::string > &  messageTags 
)
inlineoverridevirtual

Member Data Documentation

◆ mOnBadgesChangedFunc

OnBadgesChangedFunc ttv::chat::ChatConnectionListenerProxy::mOnBadgesChangedFunc

◆ mOnChatRestrictionsChangedFunc

OnChatRestrictionsChangedFunc ttv::chat::ChatConnectionListenerProxy::mOnChatRestrictionsChangedFunc

◆ mOnClearedFunc

OnClearedFunc ttv::chat::ChatConnectionListenerProxy::mOnClearedFunc

◆ mOnConnectedFunc

OnConnectedFunc ttv::chat::ChatConnectionListenerProxy::mOnConnectedFunc

◆ mOnConnectionFailedFunc

OnConnectionFailedFunc ttv::chat::ChatConnectionListenerProxy::mOnConnectionFailedFunc

◆ mOnConnectionLostFunc

OnConnectionLostFunc ttv::chat::ChatConnectionListenerProxy::mOnConnectionLostFunc

◆ mOnHostTargetChangedFunc

OnHostTargetChangedFunc ttv::chat::ChatConnectionListenerProxy::mOnHostTargetChangedFunc

◆ mOnIgnoreChangedFunc

OnIgnoreChangedFunc ttv::chat::ChatConnectionListenerProxy::mOnIgnoreChangedFunc

◆ mOnNoticeReceivedFunc

OnNoticeReceivedFunc ttv::chat::ChatConnectionListenerProxy::mOnNoticeReceivedFunc

◆ mOnPermanentBanChangedFunc

OnPermanentBanChangedFunc ttv::chat::ChatConnectionListenerProxy::mOnPermanentBanChangedFunc

◆ mOnPrivateMessageReceivedFunc

OnPrivateMessageReceivedFunc ttv::chat::ChatConnectionListenerProxy::mOnPrivateMessageReceivedFunc

◆ mOnTemporaryBanChangedFunc

OnTemporaryBanChangedFunc ttv::chat::ChatConnectionListenerProxy::mOnTemporaryBanChangedFunc

◆ mOnUserNoticeReceivedFunc

OnUserNoticeReceivedFunc ttv::chat::ChatConnectionListenerProxy::mOnUserNoticeReceivedFunc

◆ mOnUserStateChangedFunc

OnUserStateChangedFunc ttv::chat::ChatConnectionListenerProxy::mOnUserStateChangedFunc

◆ mOnWhisperReceivedFunc

OnWhisperReceivedFunc ttv::chat::ChatConnectionListenerProxy::mOnWhisperReceivedFunc

◆ mOnWhisperSentFunc

OnWhisperSentFunc ttv::chat::ChatConnectionListenerProxy::mOnWhisperSentFunc

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