Add missing serializable annotations
This commit is contained in:
parent
d3b74448f8
commit
d228df6c6d
3 changed files with 12 additions and 2 deletions
|
@ -3,7 +3,6 @@ package io.github.wulkanowy.sdk.hebe
|
|||
import io.github.wulkanowy.sdk.hebe.register.RegisterDevice
|
||||
import io.github.wulkanowy.sdk.hebe.register.StudentInfo
|
||||
import io.github.wulkanowy.sdk.hebe.repository.RepositoryManager
|
||||
import io.github.wulkanowy.signer.hebe.generateCertificate
|
||||
import io.github.wulkanowy.signer.hebe.generateKeyPair
|
||||
import okhttp3.Interceptor
|
||||
import okhttp3.logging.HttpLoggingInterceptor
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
package io.github.wulkanowy.sdk.hebe.register
|
||||
|
||||
import kotlinx.serialization.SerialName
|
||||
import kotlinx.serialization.Serializable
|
||||
|
||||
@Serializable
|
||||
class StudentInfo(
|
||||
|
||||
@SerialName("Capabilities")
|
||||
|
@ -47,6 +49,7 @@ class StudentInfo(
|
|||
val unit: Unit,
|
||||
) {
|
||||
|
||||
@Serializable
|
||||
data class ConstituentUnit(
|
||||
|
||||
@SerialName("Address")
|
||||
|
@ -68,6 +71,7 @@ class StudentInfo(
|
|||
val short: String,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class Educator(
|
||||
|
||||
@SerialName("Id")
|
||||
|
@ -88,6 +92,7 @@ class StudentInfo(
|
|||
@SerialName("Roles")
|
||||
val roles: List<Role>,
|
||||
) {
|
||||
@Serializable
|
||||
data class Role(
|
||||
|
||||
@SerialName("Address")
|
||||
|
@ -122,6 +127,7 @@ class StudentInfo(
|
|||
)
|
||||
}
|
||||
|
||||
@Serializable
|
||||
data class Journal(
|
||||
|
||||
@SerialName("Id")
|
||||
|
@ -134,6 +140,7 @@ class StudentInfo(
|
|||
val yearEnd: PeriodDate,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class PeriodDate(
|
||||
|
||||
@SerialName("Date")
|
||||
|
@ -149,6 +156,7 @@ class StudentInfo(
|
|||
val timestamp: Long,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class Login(
|
||||
|
||||
@SerialName("DisplayName")
|
||||
|
@ -173,6 +181,7 @@ class StudentInfo(
|
|||
val value: String,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class Period(
|
||||
|
||||
@SerialName("Current")
|
||||
|
@ -197,6 +206,7 @@ class StudentInfo(
|
|||
val start: PeriodDate,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class Pupil(
|
||||
|
||||
@SerialName("FirstName")
|
||||
|
@ -221,6 +231,7 @@ class StudentInfo(
|
|||
val surname: String,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class SenderEntry(
|
||||
|
||||
@SerialName("Address")
|
||||
|
@ -236,6 +247,7 @@ class StudentInfo(
|
|||
val loginId: Int,
|
||||
)
|
||||
|
||||
@Serializable
|
||||
data class Unit(
|
||||
|
||||
@SerialName("Address")
|
||||
|
|
|
@ -2,7 +2,6 @@ package io.github.wulkanowy.sdk.hebe.repository
|
|||
|
||||
import io.github.wulkanowy.sdk.hebe.ApiRequest
|
||||
import io.github.wulkanowy.sdk.hebe.ApiResponse
|
||||
import io.github.wulkanowy.sdk.hebe.register.RegisterDevice
|
||||
import io.github.wulkanowy.sdk.hebe.register.RegisterRequest
|
||||
import io.github.wulkanowy.sdk.hebe.register.RegisterResponse
|
||||
import io.github.wulkanowy.sdk.hebe.register.StudentInfo
|
||||
|
|
Loading…
Reference in a new issue