com.trustev.domain.entities.CaseStatus Maven / Gradle / Ivy
package com.trustev.domain.entities;
import java.util.Date;
import org.codehaus.jackson.annotate.JsonIgnore;
import org.codehaus.jackson.annotate.JsonProperty;
import org.codehaus.jackson.map.annotate.JsonSerialize;
/**
* The CaseStatus is used to let Trustev know the current status of any Case. When the status of a Case changes, please update the status of the Case.
*/
@JsonSerialize(include=JsonSerialize.Inclusion.NON_NULL)
public class CaseStatus extends BaseObject {
private CaseStatusType status;
private String comment;
private Date timestamp;
/**
* @return The Status Type of the Trustev Case
*/
public CaseStatusType getStatus() {
return status;
}
/**
* @param status The Status Type of the Trustev Case
*/
@JsonProperty("Status")
public void setStatus(CaseStatusType status) {
this.status = status;
}
/**
* @return Comment on the Status
*/
public String getComment() {
return comment;
}
/**
* @param comment Comment on the Status
*/
@JsonProperty("Comment")
public void setComment(String comment) {
this.comment = comment;
}
/**
* @return Current Timestamp
*/
@JsonIgnore()
public Date getTimestamp() {
return timestamp;
}
@JsonProperty("Timestamp")
String getTimestampString() {
return FormatTimeStamp(timestamp);
}
/**
* @param timestamp Current Timestamp
*/
@JsonProperty("Timestamp")
public void setTimestamp(Date timestamp) {
this.timestamp = timestamp;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy