HookMessage

@Serializable
data class HookMessage(val planId: UUID, val hook: Hook) : QueueMessage

Data class representing a message for the hook.

Constructors

Link copied to clipboard
constructor(planId: UUID, hook: Hook)

Properties

Link copied to clipboard
val hook: Hook

The hook to be executed.

Link copied to clipboard
@Serializable(with = UUIDSerializer::class)
val planId: UUID

The unique identifier of the plan.

Functions

Link copied to clipboard

Extension function to encode a QueueMessage to a ByteArray using the provided Json instance.

Link copied to clipboard

Extension function to encode a QueueMessage to a String using the provided Json instance.