AddedCommentDTO.java
package com.tradecloud.dto.api.shipment;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
@ApiModel(description = "Use for adding/deleting comments, Comment can be either free text or preset comment")
public class AddedCommentDTO {
@ApiModelProperty(readOnly = true)
private Date addedDate;
@ApiModelProperty(notes = "free text comment")
private String reason;
@ApiModelProperty(notes = "preset comment list can be accessed via comments/presetComments api")
private Long presetCommentId;
//generate via database , this is not an entity so we can use hibernate to generate id.
@ApiModelProperty(notes = "required when deleting added comment on shipment/container/subshipment")
private Long id;
private Date commentDate;
public AddedCommentDTO() {
}
public AddedCommentDTO(Date addedDate, String reason, Long presetComment, Long id,Date commentDate) {
this.addedDate = addedDate;
this.reason = reason;
this.presetCommentId = presetComment;
this.id = id;
this.commentDate=commentDate;
}
public Date getAddedDate() {
return addedDate;
}
public void setAddedDate(Date addedDate) {
this.addedDate = addedDate;
}
public String getReason() {
return reason;
}
public void setReason(String reason) {
this.reason = reason;
}
public Long getPresetCommentId() {
return presetCommentId;
}
public void setPresetCommentId(Long presetCommentId) {
this.presetCommentId = presetCommentId;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public Date getCommentDate() {
return commentDate;
}
public void setCommentDate(Date commentDate) {
this.commentDate = commentDate;
}
}