From 756d73d2cf06426ee0268a28ca4909a6eba3f613 Mon Sep 17 00:00:00 2001 From: shamalka Date: Mon, 11 May 2020 13:35:39 +0530 Subject: [PATCH] Add optional platform configs --- .../device/mgt/common/QREnrollmentPayload.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/QREnrollmentPayload.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/QREnrollmentPayload.java index 831e4ad836..600493ba8d 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/QREnrollmentPayload.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/QREnrollmentPayload.java @@ -39,6 +39,10 @@ public class QREnrollmentPayload implements Serializable { "invalidation occurs.", required = true) private List invalidPlatformConfigs; + @ApiModelProperty(name = "optionalPlatformConfigs", value = "Optional platform configs to show when an " + + "values are not set.") + private List optionalPlatformConfigs; + public Map getPayload() { return payload; } @@ -54,4 +58,12 @@ public class QREnrollmentPayload implements Serializable { public void setInvalidPlatformConfigs(List invalidPlatformConfigs) { this.invalidPlatformConfigs = invalidPlatformConfigs; } + + public List getOptionalPlatformConfigs() { + return optionalPlatformConfigs; + } + + public void setOptionalPlatformConfigs(List optionalPlatformConfigs) { + this.optionalPlatformConfigs = optionalPlatformConfigs; + } }