getStatus method

Future<ImagingStatus20> getStatus(
  1. String videoSourceToken
)

Via this command the current status of the Move operation can be requested. Supported for this command is available if the support for the Move operation is signalled via GetMoveOptions.

Access Class: READ_MEDIA

Implementation

Future<ImagingStatus20> getStatus(String videoSourceToken) async {
  loggy.debug('getStatus');

  final responseEnvelope = await transport.securedRequest(
      uri,
      soap.Body(
        request: ImagingRequest.getStatus(videoSourceToken),
      ));

  if (responseEnvelope.body.hasFault) {
    throw Exception(responseEnvelope.body.fault.toString());
  }

  return GetStatusResponse.fromJson(responseEnvelope.body.response!)
      .imagingStatus20;
}