|
|
@ -19,6 +19,7 @@
|
|
|
|
package org.wso2.carbon.device.mgt.core.dto;
|
|
|
|
package org.wso2.carbon.device.mgt.core.dto;
|
|
|
|
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.io.Serializable;
|
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
|
|
|
|
|
|
|
public class Device implements Serializable {
|
|
|
|
public class Device implements Serializable {
|
|
|
|
|
|
|
|
|
|
|
@ -26,20 +27,20 @@ public class Device implements Serializable {
|
|
|
|
private String id;
|
|
|
|
private String id;
|
|
|
|
private String description;
|
|
|
|
private String description;
|
|
|
|
private String name;
|
|
|
|
private String name;
|
|
|
|
private Long dateOfEnrolment;
|
|
|
|
private Date dateOfEnrolment;
|
|
|
|
private Long dateOfLastUpdate;
|
|
|
|
private Date dateOfLastUpdate;
|
|
|
|
private Long deviceIdentificationId;
|
|
|
|
private String deviceIdentificationId;
|
|
|
|
private Status status;
|
|
|
|
private Status status;
|
|
|
|
private String ownerId;
|
|
|
|
private String ownerId;
|
|
|
|
private String ownerShip;
|
|
|
|
private String ownerShip;
|
|
|
|
private Long tenantId;
|
|
|
|
private int tenantId;
|
|
|
|
private DeviceType deviceType;
|
|
|
|
private String deviceType;
|
|
|
|
|
|
|
|
|
|
|
|
public DeviceType getDeviceType() {
|
|
|
|
public String getDeviceType() {
|
|
|
|
return deviceType;
|
|
|
|
return deviceType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setDeviceType(DeviceType deviceType) {
|
|
|
|
public void setDeviceType(String deviceType) {
|
|
|
|
this.deviceType = deviceType;
|
|
|
|
this.deviceType = deviceType;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -67,27 +68,27 @@ public class Device implements Serializable {
|
|
|
|
this.name = name;
|
|
|
|
this.name = name;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Long getDateOfEnrolment() {
|
|
|
|
public Date getDateOfEnrolment() {
|
|
|
|
return dateOfEnrolment;
|
|
|
|
return dateOfEnrolment;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setDateOfEnrolment(Long dateOfEnrolment) {
|
|
|
|
public void setDateOfEnrolment(Date dateOfEnrolment) {
|
|
|
|
this.dateOfEnrolment = dateOfEnrolment;
|
|
|
|
this.dateOfEnrolment = dateOfEnrolment;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Long getDateOfLastUpdate() {
|
|
|
|
public Date getDateOfLastUpdate() {
|
|
|
|
return dateOfLastUpdate;
|
|
|
|
return dateOfLastUpdate;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setDateOfLastUpdate(Long dateOfLastUpdate) {
|
|
|
|
public void setDateOfLastUpdate(Date dateOfLastUpdate) {
|
|
|
|
this.dateOfLastUpdate = dateOfLastUpdate;
|
|
|
|
this.dateOfLastUpdate = dateOfLastUpdate;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Long getDeviceIdentificationId() {
|
|
|
|
public String getDeviceIdentificationId() {
|
|
|
|
return deviceIdentificationId;
|
|
|
|
return deviceIdentificationId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setDeviceIdentificationId(Long deviceIdentificationId) {
|
|
|
|
public void setDeviceIdentificationId(String deviceIdentificationId) {
|
|
|
|
this.deviceIdentificationId = deviceIdentificationId;
|
|
|
|
this.deviceIdentificationId = deviceIdentificationId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -115,11 +116,11 @@ public class Device implements Serializable {
|
|
|
|
this.ownerId = ownerId;
|
|
|
|
this.ownerId = ownerId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public Long getTenantId() {
|
|
|
|
public int getTenantId() {
|
|
|
|
return tenantId;
|
|
|
|
return tenantId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void setTenantId(Long tenantId) {
|
|
|
|
public void setTenantId(int tenantId) {
|
|
|
|
this.tenantId = tenantId;
|
|
|
|
this.tenantId = tenantId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|