Allow remote config to send non-boolean values

This version of remote config allows non-boolean values to be returned
to clients but unfortunately limits the configuration to only one
value or another. There is no way to configure more than two values
for the same key with this setup.
This commit is contained in:
Ehren Kret
2020-04-29 10:51:10 -07:00
parent f39a5f6e68
commit 50ccfee201
10 changed files with 202 additions and 114 deletions

View File

@@ -5,16 +5,20 @@ import com.fasterxml.jackson.annotation.JsonProperty;
public class UserRemoteConfig {
@JsonProperty
private String name;
private String name;
@JsonProperty
private boolean enabled;
@JsonProperty
private String value;
public UserRemoteConfig() {}
public UserRemoteConfig(String name, boolean enabled) {
public UserRemoteConfig(String name, boolean enabled, String value) {
this.name = name;
this.enabled = enabled;
this.value = value;
}
public String getName() {
@@ -24,4 +28,8 @@ public class UserRemoteConfig {
public boolean isEnabled() {
return enabled;
}
public String getValue() {
return value;
}
}