mirror of
https://github.com/aljazceru/signal-cli.git
synced 2026-01-22 15:14:29 +01:00
Add method to list linked devices
This commit is contained in:
@@ -79,7 +79,7 @@ class Manager implements Signal {
|
||||
|
||||
private final ObjectMapper jsonProcessot = new ObjectMapper();
|
||||
private String username;
|
||||
int deviceId = SignalServiceAddress.DEFAULT_DEVICE_ID;
|
||||
private int deviceId = SignalServiceAddress.DEFAULT_DEVICE_ID;
|
||||
private String password;
|
||||
private String signalingKey;
|
||||
private int preKeyIdOffset;
|
||||
@@ -107,6 +107,10 @@ class Manager implements Signal {
|
||||
return username;
|
||||
}
|
||||
|
||||
public int getDeviceId() {
|
||||
return deviceId;
|
||||
}
|
||||
|
||||
public String getFileName() {
|
||||
new File(dataPath).mkdirs();
|
||||
return dataPath + "/" + username;
|
||||
@@ -256,6 +260,9 @@ class Manager implements Signal {
|
||||
save();
|
||||
}
|
||||
|
||||
public List<DeviceInfo> getLinkedDevices() throws IOException {
|
||||
return accountManager.getDevices();
|
||||
}
|
||||
|
||||
public static Map<String, String> getQueryMap(String query) {
|
||||
String[] params = query.split("&");
|
||||
|
||||
Reference in New Issue
Block a user