getPresetTours method
Operation to request PTZ preset tours in the selected media profiles.
ACCESS CLASS: READ_MEDIA
Implementation
Future<List<PresetTour>> getPresetTours(String profileToken) async {
loggy.debug('getPresetTours');
final responseEnvelope = await transport.securedRequest(
uri,
soap.Body(
request: PtzRequest.getPresetTours(profileToken),
));
if (responseEnvelope.body.response == null) throw Exception();
return GetPresetToursResponse.fromJson(responseEnvelope.body.response!)
.presetTours;
}