-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca83bec
commit 977d3a8
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,28 @@ | ||
package questionentities; | ||
|
||
import java.time.LocalDate; | ||
|
||
public class Post { | ||
private final int questionId; | ||
private final LocalDate createAt; | ||
private final String postText; | ||
|
||
|
||
public Post(int questionId, LocalDate createAt, String postText){ | ||
this.questionId = questionId; | ||
this.createAt = createAt; | ||
this.postText = postText; | ||
} | ||
|
||
public int getQuestionId() { | ||
return questionId; | ||
} | ||
|
||
public LocalDate getCreateAt() { | ||
return createAt; | ||
} | ||
|
||
public String getPostText() { | ||
return postText; | ||
} | ||
} |