001package usecase.comment;
002
003import lombok.AllArgsConstructor;
004import lombok.Builder;
005import lombok.Data;
006
007import java.time.Instant;
008
009/**
010 * Classe DTO relativa ai commenti.
011 */
012@Data @Builder
013@AllArgsConstructor
014public class CommentDTO {
015    private final int id;
016    private final String authorUsername;
017    private final int authorId;
018    private final String content;
019    private final Instant creationDate;
020    @Builder.Default private final int parentCommentId = 0;
021    private final int postId;
022    private final int vote;
023    private final int votes;
024}