forked from community/device-mgt-core
Change getEnrollmentQRCode method return type See merge request entgra/carbon-device-mgt!537reporting
commit
d34f1caf41
@ -0,0 +1,69 @@
|
||||
/*
|
||||
* Copyright (c) 2020, Entgra (Pvt) Ltd. (http://www.entgra.io) All Rights Reserved.
|
||||
*
|
||||
* Entgra (Pvt) Ltd. licenses this file to you under the Apache License,
|
||||
* Version 2.0 (the "License"); you may not use this file except
|
||||
* in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||
* KIND, either express or implied. See the License for the
|
||||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.wso2.carbon.device.mgt.common;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* This class represents the information of QR enrollment payload.
|
||||
*/
|
||||
@ApiModel(value = "QREnrollmentPayload",
|
||||
description = "Details related to QR enrollment to generate QR code.")
|
||||
public class QREnrollmentPayload implements Serializable {
|
||||
|
||||
@ApiModelProperty(name = "payload", value = "Platform configuration payload to generate QR code.", required = true)
|
||||
private Map<String, Object> payload;
|
||||
|
||||
@ApiModelProperty(name = "invalidPlatformConfigs", value = "Invalid platform configs to show when an " +
|
||||
"invalidation occurs.", required = true)
|
||||
private List<String> invalidPlatformConfigs;
|
||||
|
||||
@ApiModelProperty(name = "optionalPlatformConfigs", value = "Optional platform configs to show when an " +
|
||||
"values are not set.")
|
||||
private List<String> optionalPlatformConfigs;
|
||||
|
||||
public Map<String, Object> getPayload() {
|
||||
return payload;
|
||||
}
|
||||
|
||||
public void setPayload(Map<String, Object> payload) {
|
||||
this.payload = payload;
|
||||
}
|
||||
|
||||
public List<String> getInvalidPlatformConfigs() {
|
||||
return invalidPlatformConfigs;
|
||||
}
|
||||
|
||||
public void setInvalidPlatformConfigs(List<String> invalidPlatformConfigs) {
|
||||
this.invalidPlatformConfigs = invalidPlatformConfigs;
|
||||
}
|
||||
|
||||
public List<String> getOptionalPlatformConfigs() {
|
||||
return optionalPlatformConfigs;
|
||||
}
|
||||
|
||||
public void setOptionalPlatformConfigs(List<String> optionalPlatformConfigs) {
|
||||
this.optionalPlatformConfigs = optionalPlatformConfigs;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue