Add method to list linked devices

This commit is contained in:
AsamK 2016-04-16 14:36:56 +02:00
parent 800b92c4ba
commit 17ff7531d4
2 changed files with 33 additions and 1 deletions

View file

@ -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("&");