xcSetDeviceToken method
设置设备token
deviceId 设备序列号或IP+Port
token 设备token
Implementation
Future<void> xcSetDeviceToken(
{required String deviceId, required String token}) async {
final result =
await _api.xcSetDeviceToken(deviceId, token, ApiSeq.instance.getSeq());
if (kDebugMode) {
XCloudResponse.fromOriginResponse(result);
}
if (result.param1 < 0) {
return Future.error(
XCloudAPIException(code: result.param1, commandId: result.commandId));
}
return;
}