-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathPostResponse.java
60 lines (43 loc) · 1.33 KB
/
PostResponse.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package com.example.fanaticbackend.payload;
import com.example.fanaticbackend.model.User;
import com.example.fanaticbackend.model.enums.ReactionType;
import com.example.fanaticbackend.model.enums.Team;
import lombok.*;
import lombok.experimental.FieldDefaults;
import java.sql.Timestamp;
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@FieldDefaults(level = AccessLevel.PRIVATE)
public class PostResponse {
Long postId;
String text;
User user;
String title;
Integer likes;
Integer dislikes;
Integer comments;
Team postedAt;
byte[] image;
Timestamp createdAt;
Long reactionId;
ReactionType reactionType;
Boolean bookmark;
public PostResponse(Long postId, String text, User user, String title, int likes, int dislikes, int comments, Team postedAt, byte[] image, Timestamp createdAt, Long reactionId, ReactionType reactionType, boolean bookmark) {
this.postId = postId;
this.text = text;
this.user = user;
this.title = title;
this.likes = likes;
this.dislikes = dislikes;
this.comments = comments;
this.postedAt = postedAt;
this.image = image;
this.createdAt = createdAt;
this.reactionId = reactionId;
this.reactionType = reactionType;
this.bookmark = bookmark;
}
}