Here is the code of Result class:
Code:
public class Result implements java.io.Serializable {
private String transactionId;
private Date timeStamp;
private Status status;
private Parameters parameters;
private String deviceId;
private String parameterName;
private String parameterKey;
private Date lastUpdatedDate;
private String lastUpdatedBy;
private String result;
public Result() {
}
public Result(String transactionId, Status status, Parameters parameters, String deviceId, String parameterName, String parameterKey,
Date lastUpdatedDate, String lastUpdatedBy) {
this.transactionId = transactionId;
this.status = status;
this.parameters = parameters;
this.deviceId = deviceId;
this.parameterName = parameterName;
this.parameterKey = parameterKey;
this.lastUpdatedDate = lastUpdatedDate;
this.lastUpdatedBy = lastUpdatedBy;
}
public Result(String transactionId, Status status, Parameters parameters, String deviceId, String parameterName, String parameterKey,
Date lastUpdatedDate, String lastUpdatedBy, String result) {
this.transactionId = transactionId;
this.status = status;
this.parameters = parameters;
this.deviceId = deviceId;
this.parameterName = parameterName;
this.parameterKey = parameterKey;
this.lastUpdatedDate = lastUpdatedDate;
this.lastUpdatedBy = lastUpdatedBy;
this.result = result;
}
/**
* Return eye position in format of X,Y e.g. 999x999,999x999
* @return {@link String}
*/
public String getEyePosition() {
return result.substring(0, 14);
}
/**
* Return mouth position in format of X e.g. 999x999
* @return {@link String}
*/
public String getMouthPosition() {
return result.substring(15, 21);
}
/**
* Return image position and size in format of X x WIDTH x HEIGHT e.g. 999x999x999x999
* @return {@link String}
*/
public String getImageSize() {
return result.substring(22, 36);
}
public String getTransactionId() {
return this.transactionId;
}
public void setTransactionId(String transactionId) {
this.transactionId = transactionId;
}
public Date getTimeStamp() {
return this.timeStamp;
}
public void setTimeStamp(Date timeStamp) {
this.timeStamp = timeStamp;
}
public Status getStatus() {
return this.status;
}
public void setStatus(Status status) {
this.status = status;
}
public Parameters getParameters() {
return this.parameters;
}
public void setParameters(Parameters parameters) {
this.parameters = parameters;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getParameterName() {
return this.parameterName;
}
public void setParameterName(String parameterName) {
this.parameterName = parameterName;
}
public String getParameterKey() {
return this.parameterKey;
}
public void setParameterKey(String parameterKey) {
this.parameterKey = parameterKey;
}
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
public String getResult() {
return this.result;
}
public void setResult(String result) {
this.result = result;
}
}
And this is Parameters class:
Code:
public class Parameters implements java.io.Serializable {
private String deviceParameterId;
private Status status;
private String deviceId;
private String parameterName;
private String parameterKey;
private Date lastUpdatedDate;
private String lastUpdatedBy;
private Set<Result> results = new HashSet<Result>(0);
public Parameters() {
}
public Parameters(String deviceParameterId, Status status, String deviceId, String parameterName, String parameterKey, Date lastUpdatedDate,
String lastUpdatedBy) {
this.deviceParameterId = deviceParameterId;
this.status = status;
this.deviceId = deviceId;
this.parameterName = parameterName;
this.parameterKey = parameterKey;
this.lastUpdatedDate = lastUpdatedDate;
this.lastUpdatedBy = lastUpdatedBy;
}
public Parameters(String deviceParameterId, Status status, String deviceId, String parameterName, String parameterKey, Date lastUpdatedDate,
String lastUpdatedBy, Set<Result> results) {
this.deviceParameterId = deviceParameterId;
this.status = status;
this.deviceId = deviceId;
this.parameterName = parameterName;
this.parameterKey = parameterKey;
this.lastUpdatedDate = lastUpdatedDate;
this.lastUpdatedBy = lastUpdatedBy;
this.results = results;
}
public String getDeviceParameterId() {
return this.deviceParameterId;
}
public void setDeviceParameterId(String deviceParameterId) {
this.deviceParameterId = deviceParameterId;
}
public Status getStatus() {
return this.status;
}
public void setStatus(Status status) {
this.status = status;
}
public String getDeviceId() {
return this.deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getParameterName() {
return this.parameterName;
}
public void setParameterName(String parameterName) {
this.parameterName = parameterName;
}
public String getParameterKey() {
return this.parameterKey;
}
public void setParameterKey(String parameterKey) {
this.parameterKey = parameterKey;
}
public Date getLastUpdatedDate() {
return this.lastUpdatedDate;
}
public void setLastUpdatedDate(Date lastUpdatedDate) {
this.lastUpdatedDate = lastUpdatedDate;
}
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
public Set<Result> getResults() {
return this.results;
}
public void setResults(Set<Result> results) {
this.results = results;
}
}