All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.wulkanowy.sdk.scrapper.timetable.TimetableResponse.kt Maven / Gradle / Ivy

Go to download

Unified way of retrieving data from the UONET+ register through mobile api and scraping api

There is a newer version: 2.7.0
Show newest version
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