Search in sources :

Example 1 with RemoteConfigResponse

use of org.whispersystems.signalservice.internal.push.RemoteConfigResponse in project Signal-Android by WhisperSystems.

the class SignalServiceAccountManager method getRemoteConfig.

public Map<String, Object> getRemoteConfig() throws IOException {
    RemoteConfigResponse response = this.pushServiceSocket.getRemoteConfig();
    Map<String, Object> out = new HashMap<>();
    for (RemoteConfigResponse.Config config : response.getConfig()) {
        out.put(config.getName(), config.getValue() != null ? config.getValue() : config.isEnabled());
    }
    return out;
}
Also used : HashMap(java.util.HashMap) ByteString(com.google.protobuf.ByteString) RemoteConfigResponse(org.whispersystems.signalservice.internal.push.RemoteConfigResponse)

Aggregations

ByteString (com.google.protobuf.ByteString)1 HashMap (java.util.HashMap)1 RemoteConfigResponse (org.whispersystems.signalservice.internal.push.RemoteConfigResponse)1