extract type response to types and add timestamp, and description to type
This commit is contained in:
@@ -1,15 +1,19 @@
|
|||||||
package ltd.hlaeja.library.deviceRegistry
|
package ltd.hlaeja.library.deviceRegistry
|
||||||
|
|
||||||
|
import java.time.ZonedDateTime
|
||||||
import java.util.UUID
|
import java.util.UUID
|
||||||
|
|
||||||
object Type {
|
object Type {
|
||||||
|
|
||||||
data class Request(
|
data class Request(
|
||||||
val name: String,
|
val name: String,
|
||||||
|
val description: String,
|
||||||
)
|
)
|
||||||
|
|
||||||
data class Response(
|
data class Response(
|
||||||
val id: UUID,
|
val id: UUID,
|
||||||
|
val timestamp: ZonedDateTime,
|
||||||
val name: String,
|
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