From 8f5ee3461034de0ef53b2973fc582d83292bef5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20Pich?= Date: Wed, 23 Aug 2023 20:14:58 +0200 Subject: [PATCH] Add new message types, add new types field --- generator/src/main/kotlin/messages.kt | 12 ++++++++++++ pojos/src/main/kotlin/Message.kt | 1 + pojos/src/main/kotlin/MessageType.kt | 3 +++ 3 files changed, 16 insertions(+) diff --git a/generator/src/main/kotlin/messages.kt b/generator/src/main/kotlin/messages.kt index df2a3f0..ca73643 100644 --- a/generator/src/main/kotlin/messages.kt +++ b/generator/src/main/kotlin/messages.kt @@ -1,6 +1,18 @@ import io.github.wulkanowy.messages.pojo.* val messages = listOf( + Message( + id = 38, + title = "Wiadomość testowa do testowania wiadomości na ekranie logowania i resetu hasła", + content = "Ta wiadomość powinna pokazać się na razie tylko na ekranie logowania", + priority = MessagePriority.MEDIUM, + type = MessageType.LOGIN_MESSAGE, + types = listOf( + MessageType.LOGIN_MESSAGE, + ), + isDismissible = false, + isVisible = true, + ), Message( id = 37, title = "Problemy na Gdańskim Portalu Edukacyjnym", diff --git a/pojos/src/main/kotlin/Message.kt b/pojos/src/main/kotlin/Message.kt index 4bc5214..419f228 100644 --- a/pojos/src/main/kotlin/Message.kt +++ b/pojos/src/main/kotlin/Message.kt @@ -8,6 +8,7 @@ data class Message( val title: String, val content: String, val type: MessageType, + val types: List? = null, val priority: MessagePriority = MessagePriority.LOW, val destinationUrl: String? = null, val versionMin: Int? = null, diff --git a/pojos/src/main/kotlin/MessageType.kt b/pojos/src/main/kotlin/MessageType.kt index 202e26d..ad12616 100644 --- a/pojos/src/main/kotlin/MessageType.kt +++ b/pojos/src/main/kotlin/MessageType.kt @@ -1,6 +1,9 @@ package io.github.wulkanowy.messages.pojo enum class MessageType { + GENERAL_MESSAGE, DASHBOARD_MESSAGE, + LOGIN_MESSAGE, + PASS_RESET_MESSAGE, ERROR_OVERRIDE, }