checkpoint 0 #5
@ -1,4 +1,32 @@
|
|||||||
package ru.myitschool.work.ui.screen.meetings
|
package ru.myitschool.work.ui.screen.meetings
|
||||||
|
|
||||||
class MeetingsState {
|
import kotlinx.collections.immutable.PersistentList
|
||||||
|
import ru.myitschool.work.ui.screen.book.BookState
|
||||||
|
import ru.myitschool.work.ui.screen.main.MainState
|
||||||
|
|
||||||
|
sealed interface MeetingsState {
|
||||||
|
data object Loading: MeetingsState
|
||||||
|
data object Empty: MeetingsState
|
||||||
|
data class Error(
|
||||||
|
val error: String
|
||||||
|
): MeetingsState
|
||||||
|
data class Data(
|
||||||
|
val name: String,
|
||||||
|
val photoUrl: String,
|
||||||
|
val books: PersistentList<Book>,
|
||||||
|
val items: PersistentList<Item>
|
||||||
|
): MeetingsState {
|
||||||
|
data class Book(
|
||||||
|
val date: String,
|
||||||
|
val place: String,
|
||||||
|
)
|
||||||
|
data class Item(
|
||||||
|
val date: String,
|
||||||
|
val places: PersistentList<Place>,
|
||||||
|
)
|
||||||
|
data class Place(
|
||||||
|
val id: String,
|
||||||
|
val name: String,
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user