xcDevsGetCapAbility method
查询设备云存储能力级
Implementation
Future<Map> xcDevsGetCapAbility(XAPiModelDevsGetCapAbility apiModel) async {
///设备为空时,不请求
if (apiModel.snList.isEmpty) {
return {};
}
String jsStr = jsonEncode(apiModel.toJson());
final oResponse = await _api.xcDevsGetCapAbility(jsStr, ApiSeq.instance.getSeq());
XCloudResponse response =
XCloudResponse.fromOriginResponse(oResponse);
if (!response.success) {
return Future.error(XCloudAPIException(code: response.code,commandId: oResponse.commandId));
}
return Future.value(response.data);
}