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

io.github.wulkanowy.sdk.scrapper.attendance.SentExcuse.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.attendance

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

@Serializable
internal class SentExcuse {

    @SerialName("Status")
    var status: Int = 0

    @SerialName("Dzien")
    @Serializable(with = CustomDateAdapter::class)
    lateinit var date: LocalDateTime

    @SerialName("IdPoraLekcji")
    var timeId: Int? = null
}

enum class SentExcuseStatus(val id: Int) {
    WAITING(0),
    ACCEPTED(1),
    DENIED(2),
    ;

    companion object {
        fun getByValue(value: Int) = entries.firstOrNull { it.id == value }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy