‪JMSDK iOS  ‪v2.8.0
‪API文档
JCAccount.h
浏览该文件的文档.
1 //
2 // JCAccount.h
3 // JCSDKOC
4 //
5 // Created by Ginger on 2018/6/8.
6 // Copyright © 2018年 juphoon. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "JCAccountCallback.h"
11 #import "JCAccountConstants.h"
12 
16 @interface JCAccount : NSObject
17 
23 + (JCAccount*)create:(id<JCAccountCallback>)callback;
24 
28 - (void)destroy;
29 
34 - (void)addCallback:(id<JCAccountCallback>)callback;
35 
40 - (void)removeCallback:(id<JCAccountCallback>)callback;
41 
50 - (int)queryAccount:(NSString *)account accountType:(NSString *)accountType;
51 
61 - (int)requestAuthCode:(JCRequestAuthCodeType)requestAuthCodeType accountType:(NSString *)accountType account:(NSString *)account templates:(NSString *)templates;
62 
72 - (int)registerAccount:(NSString *)accountType authCode:(NSString *)authCode account:(NSString *)account password:(NSString *)password;
73 
83 - (int)resetPassword:(NSString *)accountType authCode:(NSString *)authCode account:(NSString *)account password:(NSString *)password;
84 
92 - (int)changePassword:(NSString *)oldPassword newPassword:(NSString *)newPassword;
93 
102 - (int)fetchPassword:(NSString *)accountType authCode:(NSString *)authCode account:(NSString *)account;
103 
111 - (int)setAccountProperty:(NSString *)key value:(NSString *)value;
112 
119 - (int)getAccountProperty:(NSString *)key;
120 
121 @end
JCRequestAuthCodeType
Definition: JCAccountConstants.h:40
账号类
Definition: JCAccount.h:17
void destroy()
销毁 JCAccount 实例
JCAccount 回调代理
Definition: JCAccountCallback.h:15