getCompatibleConfigurations method

Future<List<PtzConfiguration>> getCompatibleConfigurations(
  1. 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.

ACCESS CLASS: READ_MEDIA

Implementation

Future<List<PtzConfiguration>> getCompatibleConfigurations(
    String profileToken) async {
  loggy.debug('getCompatibleConfigurations');

  final responseEnvelope = await transport.securedRequest(
      uri,
      soap.Body(
        request: PtzRequest.getCompatibleConfigurations(profileToken),
      ));

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

  return GetCompatibleConfigurationsResponse.fromJson(
          responseEnvelope.body.response!)
      .ptzConfigurations;
}