Base

Define the base classes and mixins for handling structures

class BaseDataMixin[source]

Base mixin for data classes to handle structure conversion.

structure()[source]

Handle the structure conversion for dbus data class.

Return type:

Dict[str, Variant]

Note

This method only exists due to the bad API from dasbus to handle such scenario of converting the data class to a dbus structure.

It tries to use the underlying to_structure method to convert the parent class to a structure, but with a sane operation to just use structure() after we initialize the class.

Returns:

The structure representation of the data.

Return type:

Structure