Twitch SDK (Internal)
Public Member Functions | List of all members
ttv::PubSubClient::ITopicListener Class Referenceabstract

#include <pubsubclient.h>

Inheritance diagram for ttv::PubSubClient::ITopicListener:
ttv::chat::ChatUserThreads::PubSubTopicListener ttv::PubSubComponentBase::PubSubTopicListener ttv::PubSubTopicListenerHelper ttv::social::FriendList::PubSubTopicListener ttv::social::Presence::PubSubTopicListener

Public Member Functions

virtual void OnTopicSubscribeStateChanged (PubSubClient *source, const std::string &topic, SubscribeState::Enum state, TTV_ErrorCode ec)=0
 
virtual void OnTopicMessageReceived (PubSubClient *source, const std::string &topic, const json::Value &msg)=0
 
virtual void OnTopicListenerRemoved (PubSubClient *source, const std::string &topic, TTV_ErrorCode ec)=0
 

Member Function Documentation

◆ OnTopicListenerRemoved()

virtual void ttv::PubSubClient::ITopicListener::OnTopicListenerRemoved ( PubSubClient source,
const std::string &  topic,
TTV_ErrorCode  ec 
)
pure virtual

Indicates the the listener is no longer going to receive topic events and the reference to the listener is removed. This is independent of topic subscription and there could be other registered topic listeners for the same topic.

Implemented in ttv::PubSubTopicListenerHelper, ttv::chat::ChatUserThreads::PubSubTopicListener, ttv::social::FriendList::PubSubTopicListener, ttv::social::Presence::PubSubTopicListener, and ttv::PubSubComponentBase::PubSubTopicListener.

◆ OnTopicMessageReceived()

virtual void ttv::PubSubClient::ITopicListener::OnTopicMessageReceived ( PubSubClient source,
const std::string &  topic,
const json::Value msg 
)
pure virtual

◆ OnTopicSubscribeStateChanged()

virtual void ttv::PubSubClient::ITopicListener::OnTopicSubscribeStateChanged ( PubSubClient source,
const std::string &  topic,
SubscribeState::Enum  state,
TTV_ErrorCode  ec 
)
pure virtual

Indicates changes to the topic subscription state on the socket. After receiving SubscribeState::Subscribed the client should resync all absolute state in order for deltas to properly apply to the local data.

Implemented in ttv::PubSubTopicListenerHelper, ttv::chat::ChatUserThreads::PubSubTopicListener, ttv::social::FriendList::PubSubTopicListener, ttv::social::Presence::PubSubTopicListener, and ttv::PubSubComponentBase::PubSubTopicListener.


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