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) bool directConnectEnable;
97 
98 @end
99 
100 
106  @interface JCClient : NSObject
107 
114 @property (nonatomic, readonly, copy) NSString* __nonnull userId;
115 
125 @property (nonatomic, copy) NSString* __nonnull displayName;
126 
136 @property (nonatomic, readonly) JCClientState state;
137 
144 @property (nonatomic, readonly) JCClientCreateParam* __nullable createParam;
145 
153 @property (nonatomic, readonly) JCClientLoginParam* __nullable loginParam;
154 
160 @property (nonatomic, readonly) NSString* __nonnull appkey;
161 
163 
166 @property (nonatomic, readonly) NSString* __nonnull serverUid;
168 
175 @property (nonatomic, copy) NSString * __nonnull serverAddress;
176 
177 
181 @property (nonatomic, assign) int timeout;
182 
183 
199 +(JCClient* __nullable)create:(NSString* __nonnull)appKey callback:(id<JCClientCallback> __nonnull)callback createParam:(JCClientCreateParam* __nullable)createParam;
200 
208 +(void)destroy;
209 
226 -(bool)login:(NSString* __nonnull)userId password:(NSString* __nonnull)password loginParam:(JCClientLoginParam* __nullable)loginParam;
227 
229 
246 -(bool)relogin:(NSString* __nonnull)userId password:(NSString* __nonnull)password loginParam:(JCClientLoginParam* __nullable)loginParam;
248 
258 -(bool)logout;
259 
275 -(int)sendOnlineMessage:(NSString* __nonnull)userId content:(NSString* __nonnull)content;
276 
277 @end
278 
最后更新时间: 11/9/2021, 5:34:32 PM