syncDevice method
Future<DynamiteResponse<SyncDeviceResponseApplicationJson, void> >
syncDevice({
- 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:
- $syncDevice_Request for the request send by this method.
- $syncDevice_Serializer for a converter to parse the
Response
from an executed request.
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);
}