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

io.github.wulkanowy.sdk.scrapper.homework.Homework.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.homework

import io.github.wulkanowy.sdk.scrapper.adapter.CustomDateAdapter
import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable
import kotlinx.serialization.Transient
import java.time.LocalDateTime

@Serializable
data class Homework(

    @SerialName("HomeworkId")
    val homeworkId: Int,

    @SerialName("Subject")
    val subject: String,

    @SerialName("Teacher")
    val teacher: String,

    @SerialName("Description")
    val content: String,

    @SerialName("Date")
    @Serializable(with = CustomDateAdapter::class)
    val date: LocalDateTime,

    @SerialName("ModificationDate")
    @Serializable(with = CustomDateAdapter::class)
    val entryDate: LocalDateTime,

    @SerialName("Status")
    val status: Int,

    @SerialName("AnswerRequired")
    val isAnswerRequired: Boolean,

    @SerialName("Attachments")
    val attachments: List = emptyList(),
) {

    @Transient
    lateinit var teacherSymbol: String

    @Transient
    @Suppress("PropertyName")
    var _attachments: List> = emptyList()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy