1 //
2 // JCClient.h
3 // JCSDK-OC
4 //
5 // Created by maikireton on 2017/8/10.
6 // Copyright © 2017年 juphoon. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "JCClientCallback.h"
11 
21 @interface JCClientCreateParam : NSObject
22 
30 @property (nonatomic, copy) NSString* __nonnull sdkInfoDir;
31 
39 @property (nonatomic, copy) NSString* __nonnull sdkLogDir;
40 
49 @property (nonatomic) JCLogLevel sdkLogLevel;
50 
51 @end
52 
53 
59 @interface JCClientLoginParam : NSObject
60 
66 @property (nonatomic, copy) NSString* __nonnull deviceId;
67 
73 @property (nonatomic, copy) NSString* __nullable httpsProxy;
74 
80 @property (nonatomic) bool autoCreateAccount;
81 
88 @property (nonatomic, strong) NSString* __nonnull terminalType;
89 
90 
96 @property (nonatomic, assign) bool directConnectEnable;
97 
103 @property (nonatomic, assign) bool stsEnable;
104 
105 @end
106 
107 
113  @interface JCClient : NSObject
114 
121 @property (nonatomic, readonly, copy) NSString* __nullable userId;
122 
132 @property (nonatomic, copy) NSString* __nullable displayName;
133 
143 @property (nonatomic, readonly) JCClientState state;
144 
151 @property (nonatomic, readonly) JCClientCreateParam* __nullable createParam;
152 
160 @property (nonatomic, readonly) JCClientLoginParam* __nullable loginParam;
161 
167 @property (nonatomic, readonly) NSString* __nonnull appkey;
168 
170 
173 @property (nonatomic, readonly) NSString* __nonnull serverUid;
175 
182 @property (nonatomic, copy) NSString * __nonnull serverAddress;
183 
184 
188 @property (nonatomic, assign) int timeout;
189 
193 @property (nonatomic, assign) bool arcChannel;
194 
195 
211 +(JCClient* __nullable)create:(NSString* __nonnull)appKey callback:(id<JCClientCallback> __nonnull)callback createParam:(JCClientCreateParam* __nullable)createParam;
212 
220 +(void)destroy;
221 
238 -(bool)login:(NSString* __nonnull)userId password:(NSString* __nonnull)password loginParam:(JCClientLoginParam* __nullable)loginParam;
239 
241 
258 -(bool)relogin:(NSString* __nonnull)userId password:(NSString* __nonnull)password loginParam:(JCClientLoginParam* __nullable)loginParam;
260 
270 -(bool)logout;
271 
287 -(int)sendOnlineMessage:(NSString* __nonnull)userId content:(NSString* __nonnull)content;
288 
289 @end
290 
最后更新时间: 2023/4/28 11:17:11