Added properties to platform and subscription

merge-requests/7/head
Chatura Dilan 8 years ago
parent 954cb3e195
commit baed4318b5

@ -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<String> tags;
private String properties;
private JSONObject descriptor;
private List<Application> 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<String> getTags() {

@ -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<String, String> properties;
public String getValue() {
return value;
}
@ -71,4 +74,12 @@ public class Subscription {
public void setApplicationRelease(ApplicationRelease applicationRelease) {
this.applicationRelease = applicationRelease;
}
public Map<String, String> getProperties() {
return properties;
}
public void setProperties(Map<String, String> properties) {
this.properties = properties;
}
}

Loading…
Cancel
Save