Replace Jackson with GSON
[holmes/rule-management.git] / rulemgt / src / main / java / org / onap / holmes / rulemgt / bean / response / RuleQueryListResponse.java
index 17903ab..aab6dc5 100644 (file)
  */\r
 package org.onap.holmes.rulemgt.bean.response;\r
 \r
-import com.fasterxml.jackson.annotation.JsonInclude;\r
-import com.fasterxml.jackson.annotation.JsonProperty;\r
+import com.google.gson.annotations.SerializedName;\r
 import lombok.Getter;\r
 import lombok.Setter;\r
 \r
 import java.util.ArrayList;\r
 import java.util.List;\r
 \r
-@JsonInclude(JsonInclude.Include.ALWAYS)\r
 @Getter\r
 @Setter\r
 public class RuleQueryListResponse {\r
-    @JsonProperty(value = "rules")\r
+    @SerializedName(value = "rules")\r
     private List<RuleResult4API> correlationRules = new ArrayList<RuleResult4API>();\r
-    @JsonProperty(value = "totalcount")\r
+    @SerializedName(value = "totalcount")\r
     private int totalCount;\r
 }\r