checkWipe method

Future<DynamiteResponse<WipeCheckWipeResponseApplicationJson, void>> checkWipe({
  1. required String token,
})

Check if the device should be wiped.

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.

Parameters:

  • token App password.

Status codes:

  • 200: Device should be wiped
  • 404: Device should not be wiped

See:

Implementation

Future<DynamiteResponse<WipeCheckWipeResponseApplicationJson, void>> checkWipe({required String token}) async {
  final rawResponse = checkWipeRaw(
    token: token,
  );

  return rawResponse.future;
}