mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
parent
fd8ba66509
commit
6dabf4550b
2 changed files with 2 additions and 2 deletions
|
@ -466,7 +466,7 @@ public interface Signal extends DBusInterface {
|
|||
}
|
||||
}
|
||||
|
||||
@DBusProperty(name = "Id", type = Long.class, access = DBusProperty.Access.READ)
|
||||
@DBusProperty(name = "Id", type = Integer.class, access = DBusProperty.Access.READ)
|
||||
@DBusProperty(name = "Name", type = String.class)
|
||||
@DBusProperty(name = "Created", type = String.class, access = DBusProperty.Access.READ)
|
||||
@DBusProperty(name = "LastSeen", type = String.class, access = DBusProperty.Access.READ)
|
||||
|
|
|
@ -169,7 +169,7 @@ public class DbusManagerImpl implements Manager {
|
|||
return signal.listDevices().stream().map(d -> {
|
||||
final var device = getRemoteObject(d.getObjectPath(),
|
||||
Signal.Device.class).GetAll("org.asamk.Signal.Device");
|
||||
return new Device(((Long) device.get("Id").getValue()).intValue(),
|
||||
return new Device((Integer) device.get("Id").getValue(),
|
||||
(String) device.get("Name").getValue(),
|
||||
(long) device.get("Created").getValue(),
|
||||
(long) device.get("LastSeen").getValue(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue