mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-03 15:11:42 +01:00
Add setting for requesting user account data.
This commit is contained in:
@@ -620,6 +620,9 @@ public class SignalServiceAccountManager {
|
||||
return out;
|
||||
}
|
||||
|
||||
public String getAccountDataReport() throws IOException {
|
||||
return pushServiceSocket.getAccountDataReport();
|
||||
}
|
||||
|
||||
public String getNewDeviceVerificationCode() throws IOException {
|
||||
return this.pushServiceSocket.getNewDeviceVerificationCode();
|
||||
|
||||
@@ -213,6 +213,7 @@ public class PushServiceSocket {
|
||||
private static final String DELETE_ACCOUNT_PATH = "/v1/accounts/me";
|
||||
private static final String CHANGE_NUMBER_PATH = "/v2/accounts/number";
|
||||
private static final String IDENTIFIER_REGISTERED_PATH = "/v1/accounts/account/%s";
|
||||
private static final String REQUEST_ACCOUNT_DATA_PATH = "/v2/accounts/data_report";
|
||||
|
||||
private static final String PREKEY_METADATA_PATH = "/v2/keys?identity=%s";
|
||||
private static final String PREKEY_PATH = "/v2/keys/%s?identity=%s";
|
||||
@@ -418,6 +419,10 @@ public class PushServiceSocket {
|
||||
}
|
||||
}
|
||||
|
||||
public String getAccountDataReport() throws IOException {
|
||||
return makeServiceRequest(REQUEST_ACCOUNT_DATA_PATH, "GET", null);
|
||||
}
|
||||
|
||||
public CdsiAuthResponse getCdsiAuth() throws IOException {
|
||||
String body = makeServiceRequest(CDSI_AUTH, "GET", null);
|
||||
return JsonUtil.fromJsonResponse(body, CdsiAuthResponse.class);
|
||||
|
||||
Reference in New Issue
Block a user