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;
}
Aggregations