diff --git a/data/src/main/java/com/android254/data/repos/mappers/SessionMapper.kt b/data/src/main/java/com/android254/data/repos/mappers/SessionMapper.kt index 2fed31d3..3a186114 100644 --- a/data/src/main/java/com/android254/data/repos/mappers/SessionMapper.kt +++ b/data/src/main/java/com/android254/data/repos/mappers/SessionMapper.kt @@ -53,7 +53,7 @@ fun SessionEntity.toDomainModel() = Session( fun SessionDTO.toEntity(): SessionEntity { return SessionEntity( id = 0, - description = description, + description = description.orEmpty(), title = title, sessionFormat = sessionFormat, sessionLevel = sessionLevel, diff --git a/datasource/remote/src/main/java/ke/droidcon/kotlin/datasource/remote/Constants.kt b/datasource/remote/src/main/java/ke/droidcon/kotlin/datasource/remote/Constants.kt index cb9fdbbb..b8671b3a 100644 --- a/datasource/remote/src/main/java/ke/droidcon/kotlin/datasource/remote/Constants.kt +++ b/datasource/remote/src/main/java/ke/droidcon/kotlin/datasource/remote/Constants.kt @@ -19,7 +19,7 @@ object Constants { // const val DEV_BASE_URL = "https://dev.droidcon.co.ke/api/v1" const val PROD_BASE_URL = "https://api.droidcon.co.ke/v1" const val DEV_BASE_URL = "https://api.droidcon.co.ke/v1" - private const val EVENT_SLUG = "droidconke-2023-137" + private const val EVENT_SLUG = "droidconke-2024-974" private const val ORG_SLUG = "droidcon-ke-645" const val EVENT_PROD_BASE_URL = "$PROD_BASE_URL/events/$EVENT_SLUG" const val EVENT_DEV_BASE_URL = "$DEV_BASE_URL/events/$EVENT_SLUG" diff --git a/datasource/remote/src/main/java/ke/droidcon/kotlin/datasource/remote/sessions/model/SessionDTO.kt b/datasource/remote/src/main/java/ke/droidcon/kotlin/datasource/remote/sessions/model/SessionDTO.kt index 00ea7406..f263a130 100644 --- a/datasource/remote/src/main/java/ke/droidcon/kotlin/datasource/remote/sessions/model/SessionDTO.kt +++ b/datasource/remote/src/main/java/ke/droidcon/kotlin/datasource/remote/sessions/model/SessionDTO.kt @@ -28,7 +28,7 @@ data class SessionDTO( val id: String, val backgroundColor: String, val borderColor: String, - val description: String, + @SerialName("description") val description: String? = "", @SerialName("end_date_time") val endDateTime: String, @SerialName("end_time") val endTime: String, @SerialName("is_bookmarked") val isBookmarked: Boolean,