From 76bbdb10676bff9f603099dea309b334e75dfc8d Mon Sep 17 00:00:00 2001 From: Andrea Brighi Date: Thu, 15 Jun 2023 01:19:53 +0200 Subject: [PATCH] fix(reminder): EventAdapter has implementation public and remove class from field --- .../reminderdomain/adapter/EventAdapter.kt | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/reminderDomain/src/main/kotlin/com/intelligentbackpack/reminderdomain/adapter/EventAdapter.kt b/reminderDomain/src/main/kotlin/com/intelligentbackpack/reminderdomain/adapter/EventAdapter.kt index 4b5005ee..ce4a8137 100644 --- a/reminderDomain/src/main/kotlin/com/intelligentbackpack/reminderdomain/adapter/EventAdapter.kt +++ b/reminderDomain/src/main/kotlin/com/intelligentbackpack/reminderdomain/adapter/EventAdapter.kt @@ -26,11 +26,9 @@ object EventAdapter { /** * Lesson is a interface that represents lesson as calendar event. * - * @property className is a name of class. * @property subject is a name of subject. */ interface Lesson : CalendarEvent { - val className: String val subject: String } @@ -71,14 +69,12 @@ object EventAdapter { * * @param startTime is a start time of event. * @param endTime is a end time of event. - * @param className is a name of class. * @param subject is a name of subject. * @param date is a date of event. */ - internal data class DateLessonImpl( + data class DateLessonImpl( override val startTime: LocalTime, override val endTime: LocalTime, - override val className: String, override val subject: String, override val date: LocalDate, ) : DateLesson @@ -88,16 +84,14 @@ object EventAdapter { * * @param startTime is a start time of event. * @param endTime is a end time of event. - * @param className is a name of class. * @param subject is a name of subject. * @param fromDate is a date from which event is done. * @param toDate is a date to which event is done. * @param dayOfWeek is a day of week when event is done. */ - internal data class WeekLessonImpl( + data class WeekLessonImpl( override val startTime: LocalTime, override val endTime: LocalTime, - override val className: String, override val subject: String, override val fromDate: LocalDate, override val toDate: LocalDate, @@ -115,7 +109,6 @@ object EventAdapter { is SchoolDateLesson -> DateLessonImpl( this.startTime, this.endTime, - this.studentsClass.name, this.subject, this.date, ) @@ -123,7 +116,6 @@ object EventAdapter { is SchoolWeekLesson -> WeekLessonImpl( this.startTime, this.endTime, - this.studentsClass.name, this.subject, this.fromDate, this.toDate,