put static method

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

Make a PUT 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 put(
    String uri,
    String contract,
    void Function(String, int) onSuccess,
    void Function(String, int) onError) {
  MdsImpl().put(uri, contract, onSuccess, onError);
}