Twitch SDK (Internal)
Public Member Functions | Private Attributes | List of all members
ttv::social::Presence::PubSubTopicListener Class Reference
Inheritance diagram for ttv::social::Presence::PubSubTopicListener:
ttv::PubSubClient::ITopicListener

Public Member Functions

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

Private Attributes

PresencemOwner
 

Constructor & Destructor Documentation

◆ PubSubTopicListener()

ttv::social::Presence::PubSubTopicListener::PubSubTopicListener ( Presence owner)

Member Function Documentation

◆ OnTopicListenerRemoved()

virtual void ttv::social::Presence::PubSubTopicListener::OnTopicListenerRemoved ( PubSubClient source,
const std::string &  topic,
TTV_ErrorCode  ec 
)
overridevirtual

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.

Implements ttv::PubSubClient::ITopicListener.

◆ OnTopicMessageReceived()

virtual void ttv::social::Presence::PubSubTopicListener::OnTopicMessageReceived ( PubSubClient source,
const std::string &  topic,
const json::Value msg 
)
overridevirtual

Received a message on a topic.

Implements ttv::PubSubClient::ITopicListener.

◆ OnTopicSubscribeStateChanged()

virtual void ttv::social::Presence::PubSubTopicListener::OnTopicSubscribeStateChanged ( PubSubClient source,
const std::string &  topic,
PubSubClient::SubscribeState::Enum  state,
TTV_ErrorCode  ec 
)
overridevirtual

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.

Implements ttv::PubSubClient::ITopicListener.

Member Data Documentation

◆ mOwner

Presence* ttv::social::Presence::PubSubTopicListener::mOwner
private

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