Add target flavor field
This commit is contained in:
parent
342042a49e
commit
5d9887dab8
3 changed files with 18 additions and 1 deletions
|
@ -1,4 +1,5 @@
|
|||
import io.github.wulkanowy.messages.pojo.Message
|
||||
import io.github.wulkanowy.messages.pojo.MessageFlavor
|
||||
import io.github.wulkanowy.messages.pojo.MessageType
|
||||
|
||||
val messages = listOf(
|
||||
|
@ -23,4 +24,12 @@ val messages = listOf(
|
|||
targetRegisterHost = "fakelog.cf",
|
||||
type = MessageType.DASHBOARD_MESSAGE,
|
||||
),
|
||||
Message(
|
||||
id = 4,
|
||||
title = "Ważny komunikat dla użytkowników F-Droida",
|
||||
content = "Aktualizacja Wulkanowego właśnie pojawiła się w twoim sklepie! Nie zwlekaj tylko pobierz ją już teraz",
|
||||
targetFlavor = MessageFlavor.FDROID,
|
||||
versionMax = 97,
|
||||
type = MessageType.DASHBOARD_MESSAGE,
|
||||
)
|
||||
)
|
||||
|
|
|
@ -7,8 +7,9 @@ data class Message(
|
|||
val id: Long,
|
||||
val title: String,
|
||||
val content: String,
|
||||
val type: MessageType,
|
||||
val versionMin: Int? = null,
|
||||
val versionMax: Int? = null,
|
||||
val targetRegisterHost: String? = null,
|
||||
val type: MessageType,
|
||||
val targetFlavor: MessageFlavor? = null,
|
||||
)
|
||||
|
|
7
pojos/src/main/kotlin/MessageFlavor.kt
Normal file
7
pojos/src/main/kotlin/MessageFlavor.kt
Normal file
|
@ -0,0 +1,7 @@
|
|||
package io.github.wulkanowy.messages.pojo
|
||||
|
||||
enum class MessageFlavor {
|
||||
PLAY,
|
||||
HMS,
|
||||
FDROID,
|
||||
}
|
Loading…
Reference in a new issue