/*
 *
 *  *  Copyright (c) 2015, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
 *  *
 *  *  WSO2 Inc. 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.core.dto.operation.mgt;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.Properties;

@XmlRootElement
public class Operation implements Serializable {

	public enum Type {
		CONFIG, MESSAGE, INFO, COMMAND, PROFILE
	}

    public enum Status {
        IN_PROGRESS, PENDING, COMPLETED, ERROR
    }

    private String code;
    private Properties properties;
    private Type type;
    private int id;
    private Status status;
    private String receivedTimeStamp;
    private String createdTimeStamp;
    private boolean isEnabled;
    private Object payLoad;

    @XmlElement
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    @XmlElement
    public Properties getProperties() {
        return properties;
    }

    public void setProperties(Properties properties) {
        this.properties = properties;
    }

    @XmlElement
    public Type getType() {
        return type;
    }

    public void setType(Type type) {
        this.type = type;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Status getStatus() {
        return status;
    }

    public void setStatus(Status status) {
        this.status = status;
    }

    public String getReceivedTimeStamp() {
        return receivedTimeStamp;
    }

    public void setReceivedTimeStamp(String receivedTimeStamp) {
        this.receivedTimeStamp = receivedTimeStamp;
    }

    public String getCreatedTimeStamp() {
        return createdTimeStamp;
    }

    public void setCreatedTimeStamp(String createdTimeStamp) {
        this.createdTimeStamp = createdTimeStamp;
    }

    public boolean isEnabled() {
        return isEnabled;
    }

    public void setEnabled(boolean isEnabled) {
        this.isEnabled = isEnabled;
    }

    public Object getPayLoad() {
        return payLoad;
    }

    public void setPayLoad(Object payLoad) {
        this.payLoad = payLoad;
    }


}
@@ -1,19 +1,14 @@
 /*%0A *
-%0A *  *
+ 
   Copyri
@@ -76,25 +76,20 @@
 rved.%0A *
-  *
 %0A * 
- *
   WSO2 I
@@ -147,18 +147,16 @@
 nse,%0A * 
- *
   Versio
@@ -214,18 +214,16 @@
 cept%0A * 
- *
   in com
@@ -251,18 +251,16 @@
 nse.%0A * 
- *
   You ma
@@ -295,25 +295,20 @@
 se at%0A *
-  *
 %0A * 
- *
   http:/
@@ -350,17 +350,12 @@
 0%0A *
-  *
 %0A * 
- *
   Un
@@ -414,18 +414,16 @@
 ing,%0A * 
- *
   softwa
@@ -479,18 +479,16 @@
 n an%0A * 
- *
   %22AS IS
@@ -539,18 +539,16 @@
  ANY%0A * 
- *
   KIND, 
@@ -602,18 +602,16 @@
  the%0A * 
- *
   specif
@@ -663,18 +663,16 @@
 ions%0A * 
- *
   under 
@@ -688,22 +688,15 @@
 se.%0A
- *  *%0A
  *%0A */%0A
-%0A
 pack

Correct copy right text