diff --git a/src/main/java/askquestion/QuestionControl.java b/src/main/java/askquestion/QuestionControl.java index d86f0260..dbe7448e 100644 --- a/src/main/java/askquestion/QuestionControl.java +++ b/src/main/java/askquestion/QuestionControl.java @@ -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); diff --git a/src/main/java/askquestion/QuestionRequestModel.java b/src/main/java/askquestion/QuestionRequestModel.java index 32f812bb..c28eafe1 100644 --- a/src/main/java/askquestion/QuestionRequestModel.java +++ b/src/main/java/askquestion/QuestionRequestModel.java @@ -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; @@ -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; }