mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 01:51:47 +00:00
It contains all the properties we need to instantiate a Device: id, name, type, cert, capabilities and protocol version. Before, we had a mix of passing those around as arguments or passing identity packets (ie: json). This simplifies the Device class quite a bit. Now, the BaseLink subclasses need to implement getDeviceInfo() interface that returns a DeviceInfo, which is what we will pass around and eventually use to instantiate a Device. This means that identity packets are an implementation detail of the LanLinkProvider and that other implementations could get the DeviceInfo in a different way.