io.github.wulkanowy.sdk.scrapper.timetable.TimetableResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sdk-scrapper Show documentation
Show all versions of sdk-scrapper Show documentation
Unified way of retrieving data from the UONET+ register through mobile api and scraping api
package io.github.wulkanowy.sdk.scrapper.timetable
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import org.jsoup.nodes.Element
import java.time.LocalDate
import java.time.LocalDateTime
@Serializable
internal data class TimetableResponse(
@SerialName("Headers")
val headers: List = emptyList(),
@SerialName("Rows")
val rows: List> = emptyList(),
@SerialName("Additionals")
val additional: List,
)
@Serializable
internal data class TimetableHeader(
@SerialName("Text")
val date: String,
)
@Serializable
internal data class TimetableAdditionalDay(
@SerialName("Header")
val header: String,
@SerialName("Descriptions")
val descriptions: List,
)
@Serializable
internal data class TimetableAdditionalLesson(
@SerialName("Description")
val description: String,
)
internal data class TimetableCell(
val number: Int = 0,
val start: LocalDateTime,
val end: LocalDateTime,
val date: LocalDate,
val td: Element,
)
© 2015 - 2024 Weber Informatics LLC | Privacy Policy