JLChen
2021-11-04 1443556e9ccb1a19ed8e6710c16c8adc4d4f4fb3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
//
//  LCApiKit.h
//  LCOnDemo
//
//  Created by 陈嘉乐 on 2021/4/26.
//
 
#import <Foundation/Foundation.h>
 
 
NS_ASSUME_NONNULL_BEGIN
 
 
@interface LCApiKit : NSObject
/**
 如果为单例,取得对应的单例
 
 @return 单例对象
 */
+ (instancetype)sharedInstance;
/// 子账号token
@property (nonatomic, strong) NSString *lcSdkToken;
/// 设置请求API地址,不设置默认空
@property (nonatomic, strong) NSString *sdkHostApi;
/// 是否国内正式,不设置默认海外
@property (nonatomic, assign) bool isChinaMainland;
/// 当前播放设备
/// 设备序列号
@property (strong, nonatomic) NSString *currentDeviceId;
/// 设备名称
@property (strong, nonatomic) NSString *currentDeviceName;
/// 当前解密密钥
@property (strong,nonatomic) NSString * currentPsk;
///  播放token
@property (strong, nonatomic) NSString *currentDevicePlayToken;
 
 
///SDK连接时的Host
- (NSString *)LCSDKHost;
///SDK连接时的Port
- (NSInteger)LCSDKPort;
///初始化LCOpenSDK_Api
- (void)initSDKOpenApi:(NSString *)lcToken;
///// 拼接错误信息
//- (NSString *) getErrorMesWithCode:(NSString *)message code:(int)code;
 
/// 接口
 
///**
// *  @since
// *  开锁接口
// *
// *  @param deviceId 设备序列号
// *  @param completion   回调block,error为空时表示添加成功
// *
// */
//- (void)openDoorbell:(NSString *)deviceId completion:(void (^)(ResponseData *responseData))completion;
 
 
 
@end
 
 
NS_ASSUME_NONNULL_END