Skip to content

Commit 12d5012

Browse files
authored
Merge pull request #137 from opensrp/add-jsonproperty-annotation-for-plan-status
Add jsonproperty annotation for plan status
2 parents 6214c91 + 8d812e7 commit 12d5012

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<artifactId>opensrp-plan-evaluator</artifactId>
88
<packaging>jar</packaging>
9-
<version>1.6.4-SNAPSHOT</version>
9+
<version>1.6.5-SNAPSHOT</version>
1010
<name>OpenSRP Plan Evaluator</name>
1111
<description>OpenSRP Plan Evaluator Library</description>
1212
<url>https://github.com/OpenSRP/opensrp-plan-evaluator</url>

src/main/java/org/smartregister/domain/PlanDefinition.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ public enum PlanStatus {
207207
* use.
208208
*/
209209
@SerializedName("draft")
210+
@JsonProperty("draft")
210211
DRAFT("draft"),
211212

212213
/**
@@ -215,6 +216,7 @@ public enum PlanStatus {
215216
* This resource is ready for normal use.
216217
*/
217218
@SerializedName("active")
219+
@JsonProperty("active")
218220
ACTIVE("active"),
219221

220222
/**
@@ -223,6 +225,7 @@ public enum PlanStatus {
223225
* This resource has been withdrawn or superseded and should no longer be used.
224226
*/
225227
@SerializedName("retired")
228+
@JsonProperty("retired")
226229
RETIRED("retired"),
227230

228231
/**
@@ -231,6 +234,7 @@ public enum PlanStatus {
231234
* This resource is completed for normal use.
232235
*/
233236
@SerializedName("complete")
237+
@JsonProperty("complete")
234238
COMPLETED("complete"),
235239

236240
/**
@@ -241,6 +245,7 @@ public enum PlanStatus {
241245
* is presumed to apply, it's just not known which one.
242246
*/
243247
@SerializedName("unknown")
248+
@JsonProperty("unknown")
244249
UNKNOWN("unknown");
245250

246251
private final String value;

0 commit comments

Comments
 (0)