13#ifndef NEM_SDK_INTERFACE_INTERFACE_AUTHSERVICE_H_
14#define NEM_SDK_INTERFACE_INTERFACE_AUTHSERVICE_H_
66 __declspec(deprecated)
68 __attribute__((deprecated(
"",
"")))
95 __declspec(deprecated)
97 __attribute__((deprecated(
"",
"")))
99 virtual void login(
const std::string& appKey,
const std::string& accountId,
const std::string& token,
const NEAuthLoginCallback& cb) = 0;
132 __declspec(deprecated)
134 __attribute__((deprecated(
"",
"")))
#define NNEM_SDK_INTERFACE_BEGIN_DECLS
#define NNEM_SDK_INTERFACE_END_DECLS
virtual void onKickOut()=0
被踢出,登录状态变更为未登录,原因为当前登录账号已在其他设备上重新登录
virtual void onAuthInfoExpired()=0
账号信息过期通知,原因为用户修改了密码,应用层随后应该重新登录
virtual void getAccountInfo(const NEGetAccountInfoCallback &cb)=0
NEEmptyCallback NEAuthLoginCallback
NEEmptyCallback NEAuthLogoutCallback
virtual void loginWithSSOToken(const std::string &ssoToken, const NEAuthLoginCallback &cb)=0
virtual void loginAnonymous(const NEAuthLoginCallback &cb)=0
NECallback< AccountInfo > NEGetAccountInfoCallback
virtual void removeAuthListener(NEAuthListener *listener)=0
virtual void logout(bool cleanup=false, const NEAuthLoginCallback &cb=nullptr)=0
virtual void login(const std::string &accountId, const std::string &token, const NEAuthLoginCallback &cb)=0
virtual void login(const std::string &appKey, const std::string &accountId, const std::string &token, const NEAuthLoginCallback &cb)=0
virtual void addAuthListener(NEAuthListener *listener)=0
virtual void tryAutoLogin(const NEAuthLoginCallback &cb)=0
virtual void loginWithNEMeeting(const std::string &account, const std::string &password, const NEAuthLoginCallback &cb)=0
NECallback<> NEEmptyCallback
std::function< void(NEErrorCode, const std::string &, const TResultParam &...)> NECallback
#define NEM_SDK_INTERFACE_EXPORT