DBusInterfaceChanges class

Namespace Runic.Platform.Linux.DBus in Runic.Platform.Linux.DBus 0.23.0

public sealed class DBusInterfaceChanges : IEquatable<DBusInterfaceChanges>

Inherits or implements IEquatable.

Interfaces one object gained or lost, from org.freedesktop.DBus.ObjectManager's InterfacesAdded or InterfacesRemoved.

Remarks

DBusObjectManagerProxy.ReadInterfaceChanges creates them. An added set has DBusInterfaceChanges.Added entries and no DBusInterfaceChanges.Removed names, a removed set the reverse. Changes compare by content: the same path, the same added interfaces with equal properties, and the same removed names in the same order.

Properties

Added

public ImmutableDictionary<string, ImmutableDictionary<string, DBusValue>> Added { get; }

The interfaces the object gained, each with its properties unwrapped from their variants.

Path

public DBusObjectPath Path { get; }

The object whose interfaces changed.

Removed

public ImmutableArray<string> Removed { get; }

The names of the interfaces the object lost. An object that lost all of them is gone.

Methods

Equals

public bool Equals(DBusInterfaceChanges? other)

Compares two sets of changes by content.

Equals

public override bool Equals(object? obj)

Inherits documentation from Object.Equals.

GetHashCode

public override int GetHashCode()

Inherits documentation from Object.GetHashCode.

ToString

public override string ToString()

Inherits documentation from Object.ToString.

Operators

operator !=

public static bool operator !=(DBusInterfaceChanges? left, DBusInterfaceChanges? right)

Compares two sets of changes by content.

operator ==

public static bool operator ==(DBusInterfaceChanges? left, DBusInterfaceChanges? right)

Compares two sets of changes by content.