| | |
| | | } |
| | | |
| | | /** |
| | | * @since 河东获取设备消息 |
| | | * @param deviceId 设备id |
| | | * @since 获取镜头隐私遮蔽状态 |
| | | * @param deviceSerial 设备序列号 |
| | | * @param completion 回调block,error为空时表示成功 |
| | | */ |
| | | - (void)getCoverSwitchStatus:(NSString *)deviceId |
| | | - (void)getCoverSwitchStatus:(NSString *)deviceSerial |
| | | completion:(void (^)(ResponseData *responseData))completion { |
| | | //设置请求参数 |
| | | NSMutableDictionary *parameters = [NSMutableDictionary dictionary]; |
| | | [parameters setValue:deviceId forKey:@"deviceId"]; |
| | | [parameters setValue:deviceSerial forKey:@"deviceSerial"]; |
| | | [parameters setValue:@(1) forKey:@"platform"]; |
| | | [parameters setValue:[NSString stringWithFormat:@"%@",[GlobalKit shareKit].hdlAppKey] forKey:@"appKey"]; |
| | | [parameters setValue:[GlobalKit shareKit].hdlHomeId forKey:@"homeId"]; |
| | | [parameters setValue:@([[GlobalKit shareKit].hdlHomeId integerValue]) forKey:@"homeId"]; |
| | | |
| | | parameters = [self GetSignRequestDictionary:parameters]; |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * @since 河东获取设备消息 |
| | | * @param deviceId 设备id |
| | | * @since 设置镜头隐私遮蔽状态 |
| | | * @param deviceSerial 设备序列号 |
| | | * @param enable 隐私遮蔽状态 |
| | | * @param completion 回调block,error为空时表示成功 |
| | | */ |
| | | - (void)getCoverSwitchStatus:(NSString *)deviceId |
| | | - (void)coverSwitchStatus:(NSString *)deviceSerial |
| | | enable:(NSInteger)enable |
| | | completion:(void (^)(ResponseData *responseData))completion { |
| | | //设置请求参数 |
| | | NSMutableDictionary *parameters = [NSMutableDictionary dictionary]; |
| | | [parameters setValue:deviceId forKey:@"deviceId"]; |
| | | [parameters setValue:deviceSerial forKey:@"deviceSerial"]; |
| | | [parameters setValue:@(enable) forKey:@"enable"]; |
| | | [parameters setValue:@(1) forKey:@"platform"]; |
| | | [parameters setValue:[NSString stringWithFormat:@"%@",[GlobalKit shareKit].hdlAppKey] forKey:@"appKey"]; |