extract type response to types and add timestamp, and description to type

This commit is contained in:
2025-03-12 00:31:55 +01:00
parent 4cf3fb6985
commit bc4524b77f
2 changed files with 17 additions and 0 deletions

View File

@@ -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,
)
}

View 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,
)
}