From db3dc0517b305cc85a4c2ef242dc7f4fd612c99a Mon Sep 17 00:00:00 2001 From: inoshperera Date: Sat, 28 May 2016 07:48:45 +0530 Subject: [PATCH] adding activity status related details. --- .../common/operation/mgt/ActivityStatus.java | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/ActivityStatus.java b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/ActivityStatus.java index b053710725..d530e94a48 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/ActivityStatus.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.common/src/main/java/org/wso2/carbon/device/mgt/common/operation/mgt/ActivityStatus.java @@ -19,18 +19,37 @@ 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 java.util.List; +@ApiModel(value = "ActivityStatus", description = "Status of an activity is described in this class.") public class ActivityStatus { public enum Status { IN_PROGRESS, PENDING, COMPLETED, ERROR, REPEATED } + @ApiModelProperty( + name = "deviceIdentifier", + value = "Device identifier of the device.", + required = true) private DeviceIdentifier deviceIdentifier; + @ApiModelProperty( + name = "status", + value = "Status of the activity performed.", + required = true) private Status status; + @ApiModelProperty( + name = "responses", + value = "Responses received from devices.", + required = true) private List responses; + @ApiModelProperty( + name = "updatedTimestamp ", + value = "Last updated time of the activity.", + required = true) private String updatedTimestamp; public DeviceIdentifier getDeviceIdentifier() {