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
54@property (nonatomic) int mmeLogCount;
55
59@property (nonatomic) int mmeLogSize;
60
61@end
62
63
69@interface JCClientLoginParam : NSObject
70
76@property (nonatomic, copy) NSString* __nonnull deviceId;
77
83@property (nonatomic, copy) NSString* __nullable httpsProxy;
84
90@property (nonatomic) bool autoCreateAccount;
91
98@property (nonatomic, strong) NSString* __nonnull terminalType;
99
100
106@property (nonatomic, assign) bool directConnectEnable;
107
113@property (nonatomic, assign) bool stsEnable;
114
115@end
116
117
123 @interface JCClient : NSObject
124
131@property (nonatomic, readonly, copy) NSString* __nullable userId;
132
142@property (nonatomic, copy) NSString* __nullable displayName;
143
153@property (nonatomic, readonly) JCClientState state;
154
161@property (nonatomic, readonly) JCClientCreateParam* __nullable createParam;
162
170@property (nonatomic, readonly) JCClientLoginParam* __nullable loginParam;
171
177@property (nonatomic, readonly) NSString* __nonnull appkey;
178
180
183@property (nonatomic, readonly) NSString* __nonnull serverUid;
185
192@property (nonatomic, copy) NSString * __nonnull serverAddress;
193
194
198@property (nonatomic, assign) int timeout;
199
203@property (nonatomic, assign) bool arcChannel;
204
205
221+(JCClient* __nullable)create:(NSString* __nonnull)appKey callback:(id<JCClientCallback> __nonnull)callback createParam:(JCClientCreateParam* __nullable)createParam;
222
230+(void)destroy;
231
248-(bool)login:(NSString* __nonnull)userId password:(NSString* __nonnull)password loginParam:(JCClientLoginParam* __nullable)loginParam;
249
251
268-(bool)relogin:(NSString* __nonnull)userId password:(NSString* __nonnull)password loginParam:(JCClientLoginParam* __nullable)loginParam;
270
280-(bool)logout;
281
297-(int)sendOnlineMessage:(NSString* __nonnull)userId content:(NSString* __nonnull)content;
298
299@end
300
JCClientState
Definition JCClientConstants.h:90
JCLogLevel
Definition JCClientConstants.h:106
Definition JCClient.h:22
NSString *__nonnull sdkLogDir
Definition JCClient.h:39
JCLogLevel sdkLogLevel
Definition JCClient.h:49
int mmeLogSize
Definition JCClient.h:59
int mmeLogCount
Definition JCClient.h:54
NSString *__nonnull sdkInfoDir
Definition JCClient.h:30
Definition JCClient.h:124
Definition JCClient.h:70
最后更新时间: 2024/8/12 13:50:38