Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 44c468e546 | |||
| bc4524b77f | |||
| 4cf3fb6985 | |||
| 1683686742 | |||
| 557254b406 | |||
| 59f0ab4c58 |
@@ -1,3 +1,3 @@
|
||||
kotlin.code.style=official
|
||||
version=0.6.0
|
||||
version=0.8.0
|
||||
catalog=0.8.0
|
||||
|
||||
@@ -7,10 +7,12 @@ object Account {
|
||||
|
||||
data class Request(
|
||||
val username: String,
|
||||
val password: CharSequence,
|
||||
val password: CharSequence?,
|
||||
val enabled: Boolean,
|
||||
val roles: List<String>,
|
||||
)
|
||||
) {
|
||||
override fun toString(): String = "Request(username=$username, password=******, enabled=$enabled, roles=$roles)"
|
||||
}
|
||||
|
||||
data class Response(
|
||||
val id: UUID,
|
||||
|
||||
@@ -1,15 +1,19 @@
|
||||
package ltd.hlaeja.library.deviceRegistry
|
||||
|
||||
import java.time.ZonedDateTime
|
||||
import java.util.UUID
|
||||
|
||||
object Type {
|
||||
|
||||
data class Request(
|
||||
val name: String,
|
||||
val description: String,
|
||||
)
|
||||
|
||||
data class Response(
|
||||
val id: UUID,
|
||||
val timestamp: ZonedDateTime,
|
||||
val name: String,
|
||||
val description: String,
|
||||
)
|
||||
}
|
||||
|
||||
13
src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Types.kt
Normal file
13
src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Types.kt
Normal file
@@ -0,0 +1,13 @@
|
||||
package ltd.hlaeja.library.deviceRegistry
|
||||
|
||||
import java.time.ZonedDateTime
|
||||
import java.util.UUID
|
||||
|
||||
object Types {
|
||||
|
||||
data class Response(
|
||||
val id: UUID,
|
||||
val name: String,
|
||||
val timestamp: ZonedDateTime,
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user