xcDevicePwdHadSetQuestionList method
获取设备密码已经设置的安全问题及答案
Implementation
Future<dynamic> xcDevicePwdHadSetQuestionList(
{required String deviceId}) async {
final result = await _api.xcDeviceSystemConfigNotLogin(deviceId,
'GetSafetyQuestion', '', 0, 1650, 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 json.decode(byteString);
}