diff options
Diffstat (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models')
-rw-r--r-- | shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/User.kt | 52 |
1 files changed, 27 insertions, 25 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/User.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/User.kt index 926ec9d..1bda398 100644 --- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/User.kt +++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/User.kt @@ -11,6 +11,10 @@ */ package mx.trackermap.TrackerMap.client.models +import kotlinx.datetime.LocalDate +import kotlinx.serialization.Contextual +import kotlinx.serialization.Serializable + /** * @@ -37,30 +41,28 @@ package mx.trackermap.TrackerMap.client.models * @param token * @param attributes */ +@Serializable data class User ( - - val id: kotlin.Int? = null, - val name: kotlin.String? = null, - val email: kotlin.String? = null, - val phone: kotlin.String? = null, - val readonly: kotlin.Boolean? = null, - val administrator: kotlin.Boolean? = null, - val map: kotlin.String? = null, - val latitude: java.math.BigDecimal? = null, - val longitude: java.math.BigDecimal? = null, - val zoom: kotlin.Int? = null, - val password: kotlin.String? = null, - val twelveHourFormat: kotlin.Boolean? = null, - val coordinateFormat: kotlin.String? = null, - val disabled: kotlin.Boolean? = null, + val id: Int? = null, + val name: String? = null, + val email: String? = null, + val phone: String? = null, + val readonly: Boolean? = null, + val administrator: Boolean? = null, + val map: String? = null, + val latitude: Double? = null, + val longitude: Double? = null, + val zoom: Int? = null, + val password: String? = null, + val twelveHourFormat: Boolean? = null, + val coordinateFormat: String? = null, + val disabled: Boolean? = null, /* in IS0 8601 format. eg. `1963-11-22T18:30:00Z` */ - val expirationTime: java.time.LocalDateTime? = null, - val deviceLimit: kotlin.Int? = null, - val userLimit: kotlin.Int? = null, - val deviceReadonly: kotlin.Boolean? = null, - val limitCommands: kotlin.Boolean? = null, - val poiLayer: kotlin.String? = null, - val token: kotlin.String? = null, - val attributes: kotlin.Any? = null -) { -}
\ No newline at end of file + val expirationTime: LocalDate? = null, + val deviceLimit: Int? = null, + val userLimit: Int? = null, + val deviceReadonly: Boolean? = null, + val limitCommands: Boolean? = null, + val poiLayer: String? = null, + val token: String? = null +)
\ No newline at end of file |