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

io.github.wulkanowy.sdk.hebe.models.Grade.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.hebe.models

import kotlinx.serialization.SerialName
import kotlinx.serialization.Serializable

@Serializable
data class Grade(
    @SerialName("Column")
    val column: Column,
    @SerialName("Comment")
    val comment: String,
    @SerialName("Content")
    val content: String,
    @SerialName("ContentRaw")
    val contentRaw: String,
    @SerialName("Creator")
    val creator: Creator,
    @SerialName("DateCreated")
    val dateCreated: DateCreated,
    @SerialName("DateModify")
    val dateModify: DateModify,
    // @SerialName("Denominator")
    // val denominator: Any?,
    @SerialName("Id")
    val id: Int,
    @SerialName("Key")
    val key: String,
    @SerialName("Modifier")
    val modifier: Modifier,
    // @SerialName("Numerator")
    // val numerator: Any?,
    @SerialName("PupilId")
    val pupilId: Int,
    @SerialName("Value")
    val value: Double? = null,
) {
    @Serializable
    data class Column(
        @SerialName("Category")
        val category: Category? = null,
        @SerialName("Code")
        val code: String,
        @SerialName("Color")
        val color: Int,
        @SerialName("Group")
        val group: String? = null,
        @SerialName("Id")
        val id: Int,
        @SerialName("Key")
        val key: String,
        @SerialName("Name")
        val name: String,
        @SerialName("Number")
        val number: Int,
        @SerialName("PeriodId")
        val periodId: Int,
        @SerialName("Subject")
        val subject: Subject,
        @SerialName("Weight")
        val weight: Double,
    ) {
        @Serializable
        data class Category(
            @SerialName("Code")
            val code: String,
            @SerialName("Id")
            val id: Int,
            @SerialName("Name")
            val name: String,
        )

        @Serializable
        data class Subject(
            @SerialName("Id")
            val id: Int,
            @SerialName("Key")
            val key: String,
            @SerialName("Kod")
            val kod: String,
            @SerialName("Name")
            val name: String,
            @SerialName("Position")
            val position: Int,
        )
    }

    @Serializable
    data class Creator(
        @SerialName("DisplayName")
        val displayName: String,
        @SerialName("Id")
        val id: Int,
        @SerialName("Name")
        val name: String,
        @SerialName("Surname")
        val surname: String,
    )

    @Serializable
    data class DateCreated(
        @SerialName("Date")
        val date: String,
        @SerialName("DateDisplay")
        val dateDisplay: String,
        @SerialName("Time")
        val time: String,
        @SerialName("Timestamp")
        val timestamp: Long,
    )

    @Serializable
    data class DateModify(
        @SerialName("Date")
        val date: String,
        @SerialName("DateDisplay")
        val dateDisplay: String,
        @SerialName("Time")
        val time: String,
        @SerialName("Timestamp")
        val timestamp: Long,
    )

    @Serializable
    data class Modifier(
        @SerialName("DisplayName")
        val displayName: String,
        @SerialName("Id")
        val id: Int,
        @SerialName("Name")
        val name: String,
        @SerialName("Surname")
        val surname: String,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy