Twitch SDK (Internal)
Public Member Functions | Private Attributes | List of all members
ttv::UserComponent::UserListener Class Reference

#include <component.h>

Inheritance diagram for ttv::UserComponent::UserListener:
ttv::IUserListener

Public Member Functions

 UserListener (UserComponent *owner)
 
virtual void OnUserLogInComplete (User *source, TTV_ErrorCode ec) override
 
virtual void OnUserLogOutComplete (User *source, TTV_ErrorCode ec) override
 
virtual void OnUserInfoFetchComplete (User *source, TTV_ErrorCode ec) override
 
virtual void OnUserAuthenticationIssue (User *source, std::shared_ptr< const OAuthToken > oauthToken, TTV_ErrorCode ec) override
 

Private Attributes

UserComponentmOwner
 

Constructor & Destructor Documentation

◆ UserListener()

ttv::UserComponent::UserListener::UserListener ( UserComponent owner)

Member Function Documentation

◆ OnUserAuthenticationIssue()

virtual void ttv::UserComponent::UserListener::OnUserAuthenticationIssue ( User source,
std::shared_ptr< const OAuthToken oauthToken,
TTV_ErrorCode  ec 
)
overridevirtual

The async event for when a user's OAuth token has been determined to be insufficient for accessing a resource.

Implements ttv::IUserListener.

◆ OnUserInfoFetchComplete()

virtual void ttv::UserComponent::UserListener::OnUserInfoFetchComplete ( User source,
TTV_ErrorCode  ec 
)
overridevirtual

The async response for a fetch of the user info.

Implements ttv::IUserListener.

◆ OnUserLogInComplete()

virtual void ttv::UserComponent::UserListener::OnUserLogInComplete ( User source,
TTV_ErrorCode  ec 
)
overridevirtual

The async response for a call to set or update the user's OAuth token.

Implements ttv::IUserListener.

◆ OnUserLogOutComplete()

virtual void ttv::UserComponent::UserListener::OnUserLogOutComplete ( User source,
TTV_ErrorCode  ec 
)
overridevirtual

The async response for a request to log the user out.

Implements ttv::IUserListener.

Member Data Documentation

◆ mOwner

UserComponent* ttv::UserComponent::UserListener::mOwner
private

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