-
Notifications
You must be signed in to change notification settings - Fork 1
/
AuthServiceEventListener.h
32 lines (25 loc) · 1.2 KB
/
AuthServiceEventListener.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#pragma once
#include <windows.h>
#include <auth_service_interface.h>
using namespace ZOOMSDK;
class AuthServiceEventListener :
public IAuthServiceEvent
{
void (*postToDo_)();
public:
AuthServiceEventListener(void (*postToDo)());
/// \brief Authentication result callback.
/// \param ret Authentication result value. For more details, see \link AuthResult \endlink enum.
virtual void onAuthenticationReturn(AuthResult ret);
/// \brief Callback of login result with fail reason.
/// \param ret Login status. see \link LOGINSTATUS \endlink enum.
/// \param pAccountInfo Valid when the ret is LOGINRET_SUCCESS. Otherwise NULL.
/// \param reason Login fail reason. Valid when the ret is LOGIN_FAILED. Otherwise LoginFail_None. see \link LoginFailReason \endlink enum.
virtual void onLoginReturnWithReason(LOGINSTATUS ret, IAccountInfo* pAccountInfo, LoginFailReason reason);
/// \brief Logout result callback.
virtual void onLogout();
/// \brief Zoom identity has expired, please re-login or generate a new zoom access token via REST Api.
virtual void onZoomIdentityExpired();
/// \brief Zoom authentication identity will be expired in 10 minutes, please re-auth.
virtual void onZoomAuthIdentityExpired();
};