xcDevicePwdQuestionList method
获取设备密码问题列表 SetSafeQuestionManager.h .m iOS参考
Implementation
Future<Map> xcDevicePwdQuestionList({required String deviceId}) async {
final OriginResponse result = await _api.devGetSysConfig(
deviceId, 'QuestionDelivery', 1360, 15000, ApiSeq.instance.getSeq());
if (kDebugMode) {
XCloudResponse.fromOriginResponse(result);
}
if (result.param1 < 0) {
return Future.error(
XCloudAPIException(code: result.param1, commandId: result.commandId));
}
if (result.byteStream == null) {
return {};
}
String byteString = XCloudResponse.byteToString(result.byteStream);
return jsonDecode(byteString);
}