Skip to content

Commit

Permalink
commit small flaw about createAt
Browse files Browse the repository at this point in the history
  • Loading branch information
josephpcsywm committed Jul 20, 2023
1 parent b696c99 commit 8c43497
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/main/java/askquestion/QuestionControl.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public QuestionControl(QuestionInputBoundary questionInput){
this.questionInput = questionInput;
}

TheQuestionResponseModel createQuestion(String questionCategory, int createAt, int askedByClient, LocalDate legalDeadline){
TheQuestionResponseModel createQuestion(String questionCategory, LocalDate createAt, int askedByClient, LocalDate legalDeadline){
QuestionRequestModel requestModel = new QuestionRequestModel(questionCategory, createAt, askedByClient, legalDeadline);

return questionInput.createQuestion(requestModel);
Expand Down
10 changes: 5 additions & 5 deletions src/main/java/askquestion/QuestionRequestModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,18 @@

public class QuestionRequestModel {
private String questionCategory;
private int createAt;
private LocalDate createAt;
private int askedByClient;
private LocalDate legalDeadline = null;

public QuestionRequestModel(String questionCategory, int createAt, int askedByClient, LocalDate legalDeadline) {
public QuestionRequestModel(String questionCategory, LocalDate createAt, int askedByClient, LocalDate legalDeadline) {
this.questionCategory = questionCategory;
this.createAt = createAt;
this.askedByClient = askedByClient;
this.legalDeadline = legalDeadline;
}

public QuestionRequestModel(String questionCategory, int createAt, int askedByClient) {
public QuestionRequestModel(String questionCategory, LocalDate createAt, int askedByClient) {
this.questionCategory = questionCategory;
this.createAt = createAt;
this.askedByClient = askedByClient;
Expand All @@ -29,11 +29,11 @@ public void setQuestionCategory(String questionCategory) {
this.questionCategory = questionCategory;
}

public int getCreateAt() {
public LocalDate getCreateAt() {
return createAt;
}

public void setCreateAt(int createAt) {
public void setCreateAt(LocalDate createAt) {
this.createAt = createAt;
}

Expand Down

0 comments on commit 8c43497

Please sign in to comment.