Meeting SDK for Windows API Reference
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
IAuthService Class Referenceabstract

Authentication Service Interface. More...

#include <auth_service_interface.h>

Public Member Functions

virtual SDKError SetEvent (IAuthServiceEvent *pEvent)=0
 Set the authentication service callback event handler.
 
virtual SDKError SDKAuth (AuthContext &authContext)=0
 SDK Authentication with jwt token.
 
virtual AuthResult GetAuthResult ()=0
 Get authentication status.
 
virtual const zchar_tGetSDKIdentity ()=0
 Get SDK identity.
 
virtual SDKError LogOut ()=0
 Account logout.
 
virtual IAccountInfoGetAccountInfo ()=0
 Get login account information.
 
virtual LOGINSTATUS GetLoginStatus ()=0
 Get login status.
 
virtual IDirectShareServiceHelperGetDirectShareServiceHelper ()=0
 Get direct share service helper interface.
 
virtual void EnableAutoRegisterNotificationServiceForLogin (bool bEnable)=0
 Enable or disable auto register notification service. This is enabled by default.
 
virtual SDKError RegisterNotificationService (const zchar_t *accessToken)=0
 Register notification service.
 
virtual SDKError UnregisterNotificationService ()=0
 UnRegister notification service.
 
virtual INotificationServiceHelperGetNotificationServiceHelper ()=0
 Get notification service helper interface.
 

Detailed Description

Authentication Service Interface.

Definition at line 185 of file auth_service_interface.h.

Member Function Documentation

◆ EnableAutoRegisterNotificationServiceForLogin()

virtual void IAuthService::EnableAutoRegisterNotificationServiceForLogin ( bool bEnable)
pure virtual

Enable or disable auto register notification service. This is enabled by default.

Parameters
[in]bEnableTrue means enabled, otherwise not.

◆ GetAccountInfo()

virtual IAccountInfo * IAuthService::GetAccountInfo ( )
pure virtual

Get login account information.

Returns
If you has logged in your account successfully, the return value is a pointer to IAccountInfo, otherwise is nullptr.

◆ GetAuthResult()

virtual AuthResult IAuthService::GetAuthResult ( )
pure virtual

Get authentication status.

Returns
The return value is authentication status. To get extended error information, see AuthResult enum.

◆ GetDirectShareServiceHelper()

virtual IDirectShareServiceHelper * IAuthService::GetDirectShareServiceHelper ( )
pure virtual

Get direct share service helper interface.

Returns
If you logged in your account successfully, the return value is the object pointer IDirectShareServiceHelper. Otherwise is nullptr.

◆ GetLoginStatus()

virtual LOGINSTATUS IAuthService::GetLoginStatus ( )
pure virtual

Get login status.

Returns
The return value is login status. To get extended error information, see LOGINSTATUS enum.

◆ GetNotificationServiceHelper()

virtual INotificationServiceHelper * IAuthService::GetNotificationServiceHelper ( )
pure virtual

Get notification service helper interface.

Returns
If the function succeeds, the return value is a pointer to INotificationServiceHelper . Otherwise returns nullptr.

◆ GetSDKIdentity()

virtual const zchar_t * IAuthService::GetSDKIdentity ( )
pure virtual

Get SDK identity.

Returns
The SDK identity.

◆ LogOut()

virtual SDKError IAuthService::LogOut ( )
pure virtual

Account logout.

Returns
If the function succeeds, the return value is SDKErr_Success. Otherwise failed. To get extended error information, see SDKError enum.

◆ RegisterNotificationService()

virtual SDKError IAuthService::RegisterNotificationService ( const zchar_t * accessToken)
pure virtual

Register notification service.

Parameters
accessTokenInitialize parameter of notification service.
Returns
If the function succeeds, the return value is SDKErr_Success. Otherwise failed. To get extended error information, see SDKError enum.

◆ SDKAuth()

virtual SDKError IAuthService::SDKAuth ( AuthContext & authContext)
pure virtual

SDK Authentication with jwt token.

Parameters
authContextThe parameter to be used for authentication SDK, see AuthContext structure.
Returns
If the function succeeds, the return value is SDKErr_Success. Otherwise failed. To get extended error information, see SDKError enum.

◆ SetEvent()

virtual SDKError IAuthService::SetEvent ( IAuthServiceEvent * pEvent)
pure virtual

Set the authentication service callback event handler.

Parameters
pEventA pointer to receive authentication event.
Returns
If the function succeeds, the return value is SDKErr_Success. Otherwise failed. To get extended error information, see SDKError enum.

◆ UnregisterNotificationService()

virtual SDKError IAuthService::UnregisterNotificationService ( )
pure virtual

UnRegister notification service.

Returns
If the function succeeds, the return value is SDKErr_Success. Otherwise failed. To get extended error information, see SDKError enum.