JLChen
2021-10-28 e96683081abd5c1a94608dd33d092d8f45371cd6
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
//
//  openApiService.h
//  appDemo
//
//  Created by chenjian on 16/7/8.
//  Copyright (c) 2016年 yao_bao. All rights reserved.
//
 
#ifndef LCOpenSDKDemo_openApiService_h
#define LCOpenSDKDemo_openApiService_h
 
#import <Foundation/Foundation.h>
 
@interface OpenApiService : NSObject
 
- (NSInteger)getAccessToken:(NSString*)ip_In port:(NSInteger)port_In appId:(NSString*)appId_In appSecret:(NSString*)appSecret_In token:(NSString**)accessTok_Out errcode:(NSString**)strErrCode_Out errmsg:(NSString**)errMsg_Out;
 
- (NSInteger)getUserToken:(NSString*)ip_In port:(NSInteger)port_In appId:(NSString*)appId_In appSecret:(NSString*)appSecret_In phone:(NSString*)phoneNum_In token:(NSString**)accessTok_Out errcode:(NSString**)strErrCode_Out errmsg:(NSString**)errMsg_Out;
 
- (NSInteger)userBindSms:(NSString*)ip_In port:(NSInteger)port_In appId:(NSString*)appId_In appSecret:(NSString*)appSecret_In phone:(NSString*)phoneNum_In errcode:(NSString**)strErrCode_Out errmsg:(NSString**)errMsg_Out;
 
- (NSInteger)userBind:(NSString*)ip_In port:(NSInteger)port_In appId:(NSString*)appId_In appSecret:(NSString*)appSecret_In phone:(NSString*)phoneNum_In smscode:(NSString*)smsCode errmsg:(NSString**)errMsgOut;
 
- (NSInteger)userBindNoVerify:(NSString*)ip_In port:(NSInteger)port_In appId:(NSString*)appId_In appSecret:(NSString*)appSecret_In phone:(NSString*)phoneNum_In errmsg:(NSString**)errMsgOut;
 
- (NSInteger)userTokenByAccount:(NSString*)ip_In port:(NSInteger)port_In appId:(NSString*)appId_In appSecret:(NSString*)appSecret_In phone:(NSString*)phoneNum_In token:(NSString**)accessTok_Out errcode:(NSString**)strErrCode_Out errmsg:(NSString**)errMsg_Out;
 
- (NSInteger)deviceOpenList:(NSString *)token_In bindId:(long)bindId_In limit:(NSUInteger)limit_In type:(NSString *)type_In needApInfo:(NSString *)needApInfo_In  result:(NSDictionary **)result_Out errcode:(NSString**)strErrCode_Out errmsg:(NSString**)errMsg_Out;
 
- (NSInteger)deviceBaseList:(NSString *)token_In bindId:(long)bindId_In limit:(NSUInteger)limit_In type:(NSString *)type_In needApInfo:(NSString *)needApInfo_In  result:(NSDictionary **)result_Out errcode:(NSString**)strErrCode_Out errmsg:(NSString**)errMsg_Out;
 
- (NSInteger)deviceOpenDetailList:(NSString *)token_In deviceList:(NSArray *)deviceList_In result:(NSDictionary **)result_Out errcode:(NSString**)strErrCode_Out errmsg:(NSString**)errMsg_Out;
 
 
- (NSInteger)deviceBaseDetailList:(NSString *)token_In deviceList:(NSArray *)deviceList_In result:(NSDictionary **)result_Out errcode:(NSString**)strErrCode_Out errmsg:(NSString**)errMsg_Out;
 
- (NSInteger)alarmStatus:(NSString *)token_In deviceId:(NSString *)deviceId channelId:(NSString *)channelId status:(int *)status errcode:(NSString**)strErrCode_Out errmsg:(NSString**)errMsg_Out;
 
- (NSInteger)updateStatus:(NSString *)token_In deviceId:(NSString *)deviceId status:(int *)status errcode:(NSString**)strErrCode_Out errmsg:(NSString**)errMsg_Out;
 
- (NSInteger)cloudStatus:(NSString *)token_In deviceId:(NSString *)deviceId channelId:(NSString *)channelId status:(int *)status errcode:(NSString**)strErrCode_Out errmsg:(NSString**)errMsg_Out;
 
- (void)cancelRequest;
 
@end
 
#endif