package online.wesal.wesal.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

public class CommentCreateRequestDTO {
    
    @NotNull(message = "Post ID is required")
    private Long postId;
    
    @NotBlank(message = "Comment body is required")
    @Size(max = 1000, message = "Comment body cannot exceed 1000 characters")
    private String body;
    
    private Long replyComment;
    
    public CommentCreateRequestDTO() {}
    
    public CommentCreateRequestDTO(Long postId, String body) {
        this.postId = postId;
        this.body = body;
    }
    
    public CommentCreateRequestDTO(Long postId, String body, Long replyComment) {
        this.postId = postId;
        this.body = body;
        this.replyComment = replyComment;
    }
    
    public Long getPostId() {
        return postId;
    }
    
    public void setPostId(Long postId) {
        this.postId = postId;
    }
    
    public String getBody() {
        return body;
    }
    
    public void setBody(String body) {
        this.body = body;
    }
    
    public Long getReplyComment() {
        return replyComment;
    }
    
    public void setReplyComment(Long replyComment) {
        this.replyComment = replyComment;
    }
}