getCompatibleConfigurations method
- String profileToken
Operation to get all available PTZConfigurations that can be added to the referenced media profile. A device providing more than one PTZConfiguration or more than one VideoSourceConfiguration or which has any other resource interdependency between PtzConfiguration entities and other resources listable in a media profile should implement this operation. PTZConfiguration entities returned by this operation shall not fail on adding them to the referenced media profile.
Implementation
Future<List<PtzConfiguration>> getCompatibleConfigurations(
String profileToken) async {
loggy.debug('getCompatibleConfigurations');
final envelope = await transport.sendRequest(
uri,
transport.securedEnvelope(
soap.PtzRequest.getCompatibleConfigurations(profileToken)));
if (envelope.body.hasFault) {
throw Exception(envelope.body.fault.toString());
}
return GetCompatibleConfigurationsResponse.fromJson(envelope.body.response!)
.ptzConfigurations;
}