5#import <Foundation/Foundation.h>
11NS_ASSUME_NONNULL_BEGIN
16@protocol NEAccountServiceListener <NSObject>
26- (void)onAuthInfoExpired;
43@protocol NEMeetingAuthListener <NEAccountServiceListener>
56- (void)tryAutoLogin:(
void (^)(NSInteger code, NSString *message,
NEAccountInfo *data))callback;
65- (void)loginByToken:(NSString *)userUuid
66 token:(NSString *)token
67 callback:(
void (^)(NSInteger code, NSString *message,
NEAccountInfo *data))callback;
76- (void)loginByPassword:(NSString *)userUuid
77 password:(NSString *)password
78 callback:(
void (^)(NSInteger code, NSString *message,
NEAccountInfo *data))callback;
86- (void)requestSmsCodeForLogin:(NSString *)phoneNumber callback:(
NECallback)callback;
95- (void)loginBySmsCode:(NSString *)phoneNumber
96 smsCode:(NSString *)smsCode
97 callback:(
void (^)(NSInteger code, NSString *message,
NEAccountInfo *data))callback;
104- (void)generateSSOLoginWebURL:(
void (^)(NSInteger code, NSString *mesage, NSString *url))callback;
112- (void)loginBySSOUri:(nonnull NSString *)ssoUri
113 callback:(
void (^)(NSInteger code, NSString *message,
NEAccountInfo *data))callback;
122- (void)loginByEmail:(NSString *)email
123 password:(NSString *)password
124 callback:(
void (^)(NSInteger code, NSString *message,
NEAccountInfo *data))callback;
133- (void)loginByPhoneNumber:(NSString *)phoneNumber
134 password:(NSString *)password
136 (
void (^)(NSInteger code, NSString *message,
NEAccountInfo *data))callback;
143- (void)getAccountInfo:(
void (^)(NSInteger code, NSString *message,
NEAccountInfo *data))callback;
149- (void)addListener:(
id<NEAccountServiceListener>)listener;
155- (void)removeListener:(
id<NEAccountServiceListener>)listener;
164- (void)resetPassword:(NSString *)userUuid
165 newPassword:(NSString *)newPassword
166 oldPassword:(NSString *)oldPassword
174- (void)updateAvatar:(NSString *)imagePath callback:(
NECallback)callback;
181- (void)updateNickname:(NSString *)nickname callback:(
NECallback)callback;
void(^ NECallback)(NSInteger resultCode, NSString *resultMessage, id resultData)
定义 NEMeetingKitDefine.h:17