Search in sources :

Example 1 with CredentialResponse

use of org.whispersystems.signalservice.api.groupsv2.CredentialResponse in project Signal-Android by WhisperSystems.

the class PushServiceSocket method retrieveGroupsV2Credentials.

public CredentialResponse retrieveGroupsV2Credentials(int today) throws IOException {
    int todayPlus7 = today + 7;
    String response = makeServiceRequest(String.format(Locale.US, GROUPSV2_CREDENTIAL, today, todayPlus7), "GET", null, NO_HEADERS, Optional.absent());
    return JsonUtil.fromJson(response, CredentialResponse.class);
}
Also used : GroupsV2AuthorizationString(org.whispersystems.signalservice.api.groupsv2.GroupsV2AuthorizationString)

Aggregations

GroupsV2AuthorizationString (org.whispersystems.signalservice.api.groupsv2.GroupsV2AuthorizationString)1