Skip to content

Commit 5c3e425

Browse files
authored
Merge branch 'develop' into feature/localization
2 parents 08e57c2 + 190f421 commit 5c3e425

File tree

1 file changed

+1
-8
lines changed
  • src/main/kotlin/org/datepollsystems/waiterrobot/mediator/data/api/dto

1 file changed

+1
-8
lines changed
Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
package org.datepollsystems.waiterrobot.mediator.data.api.dto
22

3-
import kotlinx.serialization.SerialName
43
import kotlinx.serialization.Serializable
5-
import kotlinx.serialization.Transient
64
import org.datepollsystems.waiterrobot.mediator.core.ID
7-
import java.time.LocalDate
85

96
@Serializable
107
data class GetEventDto(
118
val id: ID,
129
val name: String,
13-
@SerialName("date") private val dateString: String? = null,
1410
val street: String,
1511
val streetNumber: String,
1612
val postalCode: String,
1713
val city: String,
1814
val organisationId: ID,
1915
val isDemo: Boolean
20-
) {
21-
@Transient
22-
val date: LocalDate? = dateString?.let { LocalDate.parse(it) }
23-
}
16+
)

0 commit comments

Comments
 (0)