Add new message types, add new types field
This commit is contained in:
parent
1e39d83fd7
commit
8f5ee34610
3 changed files with 16 additions and 0 deletions
|
@ -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",
|
||||
|
|
|
@ -8,6 +8,7 @@ data class Message(
|
|||
val title: String,
|
||||
val content: String,
|
||||
val type: MessageType,
|
||||
val types: List<MessageType>? = null,
|
||||
val priority: MessagePriority = MessagePriority.LOW,
|
||||
val destinationUrl: String? = null,
|
||||
val versionMin: Int? = null,
|
||||
|
|
|
@ -1,6 +1,9 @@
|
|||
package io.github.wulkanowy.messages.pojo
|
||||
|
||||
enum class MessageType {
|
||||
GENERAL_MESSAGE,
|
||||
DASHBOARD_MESSAGE,
|
||||
LOGIN_MESSAGE,
|
||||
PASS_RESET_MESSAGE,
|
||||
ERROR_OVERRIDE,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue