transportGoToEnd method
transportGoToEnd
-> /v1/transport/{layer}/go_to_end
Moves to the end on a certain layer Moves to the end in the content on the specified layer or moves the specified number of seconds away from the end in the content on the specified layer (presentation, announcement, audio).
PARAMETERS
layer
: The layer to perform the transport operation on
- Should be one of:
presentation
,announcement
,audio
time
: The number of seconds back from the end to move to, 0 if not specified
Example: 15
RESPONSE 204:
The request was processed successfully. There is no response body.
content-type: NONE
RESPONSE 400:
The request was not valid.
content-type: ``
Implementation
Future<bool> transportGoToEnd(String layer, {int? time}) async {
String url = '/v1/transport/$layer/goToEnd';
Map<String, dynamic> query = {'time': time.toString()};
return await call('get', url, params: query, httpAccept: 'application/json');
}