diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dto/Platform.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dto/Platform.java index da176976751..9a943d96209 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dto/Platform.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dto/Platform.java @@ -18,6 +18,7 @@ */ package org.wso2.carbon.device.application.mgt.core.dto; +import org.json.JSONObject; import org.wso2.carbon.device.application.mgt.core.jaxrs.Exclude; import java.util.List; @@ -37,7 +38,7 @@ public class Platform { private List tags; - private String properties; + private JSONObject descriptor; private List applications; @@ -81,12 +82,12 @@ public class Platform { this.iconName = iconName; } - public String getProperties() { - return properties; + public JSONObject getDescriptor() { + return descriptor; } - public void setProperties(String properties) { - this.properties = properties; + public void setDescriptor(JSONObject descriptor) { + this.descriptor = descriptor; } public List getTags() { diff --git a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dto/Subscription.java b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dto/Subscription.java index 2874f9f8f5d..7e49b8bb559 100644 --- a/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dto/Subscription.java +++ b/components/application-mgt/org.wso2.carbon.device.application.mgt.core/src/main/java/org/wso2/carbon/device/application/mgt/core/dto/Subscription.java @@ -19,6 +19,7 @@ package org.wso2.carbon.device.application.mgt.core.dto; import java.util.Date; +import java.util.Map; public class Subscription { @@ -32,6 +33,8 @@ public class Subscription { private ApplicationRelease applicationRelease; + private Map properties; + public String getValue() { return value; } @@ -71,4 +74,12 @@ public class Subscription { public void setApplicationRelease(ApplicationRelease applicationRelease) { this.applicationRelease = applicationRelease; } + + public Map getProperties() { + return properties; + } + + public void setProperties(Map properties) { + this.properties = properties; + } }