del static method

void del(
  1. String uri,
  2. String contract,
  3. void onSuccess(
    1. String,
    2. int
    ),
  4. void onError(
    1. String,
    2. int
    ),
)

Make a DEL request for a resource. uri must include "suunto://" prefix and device serial if needed. contract must be a json string. If the request is successful, onSuccess is called with response data in json string format, and status code. Upon error, onError is called with reason and status code.

Implementation

static void del(
    String uri,
    String contract,
    void Function(String, int) onSuccess,
    void Function(String, int) onError) {
  MdsImpl().del(uri, contract, onSuccess, onError);
}