Merge branch 'rest-api-improvements' of https://github.com/wso2/carbon-device-mgt into rest-api-improvements

revert-70aa11f8
prabathabey 9 years ago
commit 2925f52cd8

@ -19,18 +19,37 @@
package org.wso2.carbon.device.mgt.common.operation.mgt; package org.wso2.carbon.device.mgt.common.operation.mgt;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.wso2.carbon.device.mgt.common.DeviceIdentifier; import org.wso2.carbon.device.mgt.common.DeviceIdentifier;
import java.util.List; import java.util.List;
@ApiModel(value = "ActivityStatus", description = "Status of an activity is described in this class.")
public class ActivityStatus { public class ActivityStatus {
public enum Status { public enum Status {
IN_PROGRESS, PENDING, COMPLETED, ERROR, REPEATED IN_PROGRESS, PENDING, COMPLETED, ERROR, REPEATED
} }
@ApiModelProperty(
name = "deviceIdentifier",
value = "Device identifier of the device.",
required = true)
private DeviceIdentifier deviceIdentifier; private DeviceIdentifier deviceIdentifier;
@ApiModelProperty(
name = "status",
value = "Status of the activity performed.",
required = true)
private Status status; private Status status;
@ApiModelProperty(
name = "responses",
value = "Responses received from devices.",
required = true)
private List<OperationResponse> responses; private List<OperationResponse> responses;
@ApiModelProperty(
name = "updatedTimestamp ",
value = "Last updated time of the activity.",
required = true)
private String updatedTimestamp; private String updatedTimestamp;
public DeviceIdentifier getDeviceIdentifier() { public DeviceIdentifier getDeviceIdentifier() {

Loading…
Cancel
Save