//
|
// 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
|