From 618b857dba3ab2c6247c6fbc0dbeaf1e15706927 Mon Sep 17 00:00:00 2001 From: Jokwanhee Date: Sat, 26 Oct 2024 00:02:33 +0900 Subject: [PATCH] =?UTF-8?q?[add]=20DTO=20nullable=20=ED=83=80=EC=9E=85=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../response/timetable/LectureResponse.kt | 22 +++++++++---------- .../timetable/TimetableFrameResponse.kt | 2 +- .../timetable/TimetableLectureResponse.kt | 20 ++++++++--------- .../timetable/TimetableLecturesResponse.kt | 4 ++-- 4 files changed, 24 insertions(+), 24 deletions(-) diff --git a/data/src/main/java/in/koreatech/koin/data/response/timetable/LectureResponse.kt b/data/src/main/java/in/koreatech/koin/data/response/timetable/LectureResponse.kt index 84d696ec4..c6c0ae540 100644 --- a/data/src/main/java/in/koreatech/koin/data/response/timetable/LectureResponse.kt +++ b/data/src/main/java/in/koreatech/koin/data/response/timetable/LectureResponse.kt @@ -6,27 +6,27 @@ data class LectureResponse( @SerializedName("id") val id: Int, @SerializedName("code") // "HRD011" - val code: String, + val code: String?, @SerializedName("name") // "직업능력개발훈련평가" - val name: String, + val name: String?, @SerializedName("grades") // "2" - val grades: String, + val grades: String?, @SerializedName("lecture_class") // "01" - val lectureClass: String, + val lectureClass: String?, @SerializedName("regular_number") // "40" - val regularNumber: String, + val regularNumber: String?, @SerializedName("department") // "HRD학과" - val department: String, + val department: String?, @SerializedName("target") // "기공3" - val target: String, + val target: String?, @SerializedName("professor") // "홍길동" - val professor: String, + val professor: String?, @SerializedName("is_english") // "0" : fasle / "1" : true - val isEnglish: String, + val isEnglish: String?, @SerializedName("design_score") // "0" - val designScore: String, + val designScore: String?, @SerializedName("is_elearning") // - val isElearning: String, + val isElearning: String?, @SerializedName("class_time") val classTime: List, ) \ No newline at end of file diff --git a/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableFrameResponse.kt b/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableFrameResponse.kt index 8f7c69f35..2d0898441 100644 --- a/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableFrameResponse.kt +++ b/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableFrameResponse.kt @@ -6,7 +6,7 @@ data class TimetableFrameResponse( @SerializedName("id") val id: Int, @SerializedName("timetable_name") - val timetableName: String, + val timetableName: String?, @SerializedName("is_main") val isMain: Boolean, ) diff --git a/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableLectureResponse.kt b/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableLectureResponse.kt index dc935fbde..330e3b306 100644 --- a/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableLectureResponse.kt +++ b/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableLectureResponse.kt @@ -8,27 +8,27 @@ data class TimetableLectureResponse( @SerializedName("lecture_id") val lectureId: Int, @SerializedName("regular_number") // "38" - val regularNumber: String, + val regularNumber: String?, @SerializedName("code") // "ARB244" - val code: String, + val code: String?, @SerializedName("design_score") // "0" - val designScore: String, + val designScore: String?, @SerializedName("class_time") val classTime: List, @SerializedName("class_place") // "2공학관" - val classPlace: String, + val classPlace: String?, @SerializedName("memo") val memo: String?, @SerializedName("grades") // "3" - val grades: String, + val grades: String?, @SerializedName("class_title") // "한국사" - val classTitle: String, + val classTitle: String?, @SerializedName("lecture_class") // "01" - val lectureClass: String, + val lectureClass: String?, @SerializedName("target") // "디자 1 건축" - val target: String, + val target: String?, @SerializedName("professor") // "이돈우" - val professor: String, + val professor: String?, @SerializedName("department") // "디자인ㆍ건축공학부" - val department: String, + val department: String?, ) diff --git a/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableLecturesResponse.kt b/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableLecturesResponse.kt index f18989d2a..76c3ecafe 100644 --- a/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableLecturesResponse.kt +++ b/data/src/main/java/in/koreatech/koin/data/response/timetable/TimetableLecturesResponse.kt @@ -8,8 +8,8 @@ data class TimetableLecturesResponse( @SerializedName("timetable") val timetable: List, @SerializedName("grades") - val grades: Int, + val grades: Int?, @SerializedName("total_grades") - val totalGrades: Int, + val totalGrades: Int?, )