Skip to content

Commit 43ed836

Browse files
author
Varun Rathore
committed
Fix Server Condition
1 parent 5325712 commit 43ed836

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

src/main/java/com/google/firebase/remoteconfig/internal/ServerTemplateResponse.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public final class ServerTemplateResponse {
3333
@Key("parameters")
3434
private Map<String, ParameterResponse> parameters;
3535

36-
@Key("serverConditions")
36+
@Key("conditions")
3737
private List<ServerConditionResponse> serverConditions;
3838

3939
@Key("parameterGroups")
@@ -104,7 +104,7 @@ public static final class ServerConditionResponse {
104104
@Key("name")
105105
private String name;
106106

107-
@Key("serverCondition")
107+
@Key("condition")
108108
private OneOfConditionResponse condition;
109109

110110
public String getName() {

src/test/resources/getServerRemoteConfig.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"serverConditions": [
2+
"conditions": [
33
{
44
"name": "custom_signal",
5-
"serverCondition": {
5+
"condition": {
66
"orCondition": {
77
"conditions": [
88
{
@@ -26,7 +26,7 @@
2626
},
2727
{
2828
"name": "percent",
29-
"serverCondition": {
29+
"condition": {
3030
"orCondition": {
3131
"conditions": [
3232
{
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"name": "chained_conditions",
54-
"serverCondition": {
54+
"condition": {
5555
"orCondition": {
5656
"conditions": [
5757
{

src/test/resources/getServerTemplateData.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"serverConditions": [
2+
"conditions": [
33
{
44
"name": "custom_signal",
5-
"serverCondition": {
5+
"condition": {
66
"orCondition": {
77
"conditions": [
88
{
@@ -26,7 +26,7 @@
2626
},
2727
{
2828
"name": "percent",
29-
"serverCondition": {
29+
"condition": {
3030
"orCondition": {
3131
"conditions": [
3232
{
@@ -51,7 +51,7 @@
5151
},
5252
{
5353
"name": "chained_conditions",
54-
"serverCondition": {
54+
"condition": {
5555
"orCondition": {
5656
"conditions": [
5757
{

0 commit comments

Comments
 (0)