getUsers method

Future<List<User>> getUsers()

This operation lists the registered users and corresponding credentials on a device. The device shall support retrieval of registered device users and their credentials for the user token through the getUsers (GetUsers) command.

Implementation

Future<List<User>> getUsers() async {
  final envelope = await Soap.retrieveEnvlope(
      uri, onvif.secureRequest(SoapRequest.users()));

  if (envelope.body.usersResponse == null) throw Exception();

  return envelope.body.usersResponse!.users;
}