getPresetTour method
Operation to request a specific PTZ preset tour in the selected media profile.
ACCESS CLASS: READ_MEDIA
Implementation
Future<PresetTour> getPresetTour(
String profileToken, {
required String presetTourToken,
}) async {
loggy.debug('getPresetTour');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: PtzRequest.getPresetTour(
profileToken,
presetTourToken: presetTourToken,
),
));
if (responseEnvelope.body.response == null) throw Exception();
return GetPresetTourResponse.fromJson(responseEnvelope.body.response!)
.presetTour;
}