Matthias Andreas Benkard | 36b0f04 | 2021-02-27 10:46:04 +0100 | [diff] [blame^] | 1 | package eu.mulk.demos.blog.posts; |
| 2 | |
| 3 | import java.time.Instant; |
| 4 | |
| 5 | public final class PostSummary { |
| 6 | |
| 7 | public final String authorName; |
| 8 | public final String title; |
| 9 | public final Instant publicationDate; |
| 10 | public final int commentCount; |
| 11 | |
| 12 | public PostSummary( |
| 13 | String authorName, |
| 14 | String title, |
| 15 | Instant publicationDate, |
| 16 | int commentCount) { |
| 17 | this.authorName = authorName; |
| 18 | this.title = title; |
| 19 | this.publicationDate = publicationDate; |
| 20 | this.commentCount = commentCount; |
| 21 | } |
| 22 | } |