Twitch SDK (Internal)
userlistener.h
Go to the documentation of this file.
1 /********************************************************************************************
2 * Twitch Broadcasting SDK
3 *
4 * This software is supplied under the terms of a license agreement with Twitch Interactive, Inc. and
5 * may not be copied or used except in accordance with the terms of that agreement
6 * Copyright (c) 2012-2016 Twitch Interactive, Inc.
7 *********************************************************************************************/
8 
9 #pragma once
10 
13 
14 #include <memory>
15 
16 namespace ttv
17 {
18  class User;
19  class IUserListener;
20  class OAuthToken;
21 }
22 
23 
25 {
26 public:
30  virtual void OnUserLogInComplete(User* source, TTV_ErrorCode ec) = 0;
34  virtual void OnUserLogOutComplete(User* source, TTV_ErrorCode ec) = 0;
38  virtual void OnUserInfoFetchComplete(User* source, TTV_ErrorCode ec) = 0;
42  virtual void OnUserAuthenticationIssue(User* source, std::shared_ptr<const OAuthToken> oauthToken, TTV_ErrorCode ec) = 0;
43 };
virtual void OnUserLogInComplete(User *source, TTV_ErrorCode ec)=0
Definition: userlistener.h:24
JSON (JavaScript Object Notation).
Definition: adsapi.h:16
uint32_t TTV_ErrorCode
Definition: errortypes.h:30
virtual void OnUserAuthenticationIssue(User *source, std::shared_ptr< const OAuthToken > oauthToken, TTV_ErrorCode ec)=0
virtual void OnUserInfoFetchComplete(User *source, TTV_ErrorCode ec)=0
virtual void OnUserLogOutComplete(User *source, TTV_ErrorCode ec)=0
Definition: user.h:33