-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(backend): create service for /planning
- Loading branch information
1 parent
15fe346
commit b35a13a
Showing
6 changed files
with
165 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
shared/models/src/commonMain/kotlin/org/gdglille/devfest/models/PlanningItem.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package org.gdglille.devfest.models | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
sealed class PlanningItem { | ||
abstract val id: String | ||
abstract val order: Int | ||
|
||
@Serializable | ||
@SerialName("talk-session") | ||
data class TalkItem( | ||
override val id: String, | ||
override val order: Int, | ||
val startTime: String, | ||
val endTime: String, | ||
val room: String, | ||
val talk: Talk | ||
) : PlanningItem() | ||
|
||
@Serializable | ||
@SerialName("event-session") | ||
data class EventItem( | ||
override val id: String, | ||
override val order: Int, | ||
val startTime: String, | ||
val endTime: String, | ||
val room: String, | ||
val info: Info | ||
) : PlanningItem() | ||
} | ||
|
||
@Serializable | ||
data class Info( | ||
val id: String, | ||
val title: String, | ||
val description: String? | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters