PresetCommentDTO.java

package com.tradecloud.dto.api;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description = "for comments CRUD")
public class PresetCommentDTO {
    @ApiModelProperty(notes="required on update and linking to shipment/subshipment/container")
    private Long id;
    @ApiModelProperty(required = true,notes="see comments list for possible comment type")
    private String commentType;
    @ApiModelProperty(required = true,notes="Actual comment")
    private String commentText;

    public PresetCommentDTO() {
    }

    public PresetCommentDTO(Long id, String commentType, String commentText) {
        this.id = id;
        this.commentType = commentType;
        this.commentText = commentText;
    }

    public Long getId() {
        return id;
    }

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

    public String getCommentType() {
        return commentType;
    }

    public void setCommentType(String commentType) {
        this.commentType = commentType;
    }

    public String getCommentText() {
        return commentText;
    }

    public void setCommentText(String commentText) {
        this.commentText = commentText;
    }
}