NotificationEvent

open class NotificationEvent(val source: Int, val destinations: Int, val buId: String, val notificationMessage: NotificationMessage) : PushEvent

Notification event

Inheritors

Constructors

Link copied to clipboard
constructor(source: Int, destinations: Int, buId: String, notificationMessage: NotificationMessage)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open val buId: String

Business Unit id

Link copied to clipboard
open val destinations: Int

Destination submodule which should handle the event i.e. MCE/MAM

Link copied to clipboard
Link copied to clipboard
open val source: Int

Backend from which the event originates

Functions

Link copied to clipboard
@JvmName(name = "getDestinationSet")
fun getDestinations(): Set<Int>

Get the destinations as a set of bitwise values

Link copied to clipboard
@JvmName(name = "getSourceSet")
fun getSources(): Set<Int>

Get the source as a set of bitwise values

Link copied to clipboard
fun hasDestination(destinationType: Int): Boolean

Check if the destinations contain a specific bitwise value

Link copied to clipboard
fun hasSource(sourceType: Int): Boolean

Check if the source contains a specific bitwise value

Link copied to clipboard
open override fun toJson(): JSONObject

Convert the event to a JSON object

Link copied to clipboard
fun NotificationEvent.toNotificationClickEvent(actionType: String, actionItemId: String, title: String?): NotificationClickEvent
Link copied to clipboard
fun NotificationEvent.toPushReceivedEvent(receivedTimestamp: Long, sentTimestamp: Long, messageType: String?, pushData: Map<String, String>?): PushReceivedEvent