del static method
Make a DEL request for a resource. uri must include "suunto://" prefix and device serial if needed. contract must be a json string. Returns a Future that completes with the response data in json format.
Implementation
static Future<dynamic> del(String uri, String contract) {
final mdscompleter = Completer<dynamic>();
MdsImpl().del(uri, contract, (data, status) {
final content = data.isEmpty ? {} : jsonDecode(data);
debugPrint(" content: $content");
mdscompleter.complete(content?["Content"]);
}, (data, status) {
mdscompleter.completeError(MdsError(status, data));
});
return mdscompleter.future;
}