syncDevice method

Future<DynamiteResponse<SyncDeviceResponseApplicationJson, void>> syncDevice({
  1. required String deviceId,
})

Request to get push messages.

This is a public page since it has to be handle by the non-connected app (NextPush app and not Nextcloud-app).

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Status codes:

  • 401: Missing permissions to sync device

See:

Implementation

Future<_i1.DynamiteResponse<SyncDeviceResponseApplicationJson, void>> syncDevice({required String deviceId}) async {
  final _request = $syncDevice_Request(
    deviceId: deviceId,
  );
  final _response = await httpClient.send(_request);

  final _serializer = $syncDevice_Serializer();
  final _rawResponse =
      await _i1.ResponseConverter<SyncDeviceResponseApplicationJson, void>(_serializer).convert(_response);
  return _i1.DynamiteResponse.fromRawResponse(_rawResponse);
}