mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-29 18:40:39 +00:00
Add method to list linked devices
This commit is contained in:
parent
800b92c4ba
commit
17ff7531d4
2 changed files with 33 additions and 1 deletions
|
@ -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("&");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue