getServerInformation method

Future<NotificationsServerInformation> getServerInformation()

Gets information about the notifications server.

Implementation

Future<NotificationsServerInformation> getServerInformation() async {
  var result = await _object.callMethod(
      'org.freedesktop.Notifications', 'GetServerInformation', [],
      replySignature: DBusSignature('ssss'));
  var values = result.returnValues;
  return NotificationsServerInformation(
      (values[0] as DBusString).value,
      (values[1] as DBusString).value,
      (values[2] as DBusString).value,
      (values[3] as DBusString).value);
}