From bc4524b77f3e02f33c3fa150ff2929b59a0c1219 Mon Sep 17 00:00:00 2001 From: Swordsteel Date: Wed, 12 Mar 2025 00:31:55 +0100 Subject: [PATCH] extract type response to types and add timestamp, and description to type --- .../ltd/hlaeja/library/deviceRegistry/Type.kt | 4 ++++ .../ltd/hlaeja/library/deviceRegistry/Types.kt | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Types.kt diff --git a/src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Type.kt b/src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Type.kt index 2e67187..ef4f943 100644 --- a/src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Type.kt +++ b/src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Type.kt @@ -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, ) } diff --git a/src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Types.kt b/src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Types.kt new file mode 100644 index 0000000..ab1897c --- /dev/null +++ b/src/main/kotlin/ltd/hlaeja/library/deviceRegistry/Types.kt @@ -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, + ) +}