adding activity status related details.

4.x.x
inoshperera 9 years ago
parent e1dfecb518
commit db3dc0517b

@ -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