aries / net.globalid.aries.decorators.threading / ThreadDecorator

ThreadDecorator

@JsonClass(true) data class ThreadDecorator : MessageDecorator

Thread decorator is generally required on any type of response

Constructors

<init>

Thread decorator is generally required on any type of response

ThreadDecorator(threadId: String, parentThreadId: String? = null, senderOrder: Int = 0, receivedOrders: Map<String, Int> = emptyMap())

Properties

parentThreadId

a optional parent thread ID, used when branching or nesting a new interaction off of an existing one

val parentThreadId: String?

receivedOrders

reports the highest sender_order value that the sender has seen from other sender(s) on the thread

val receivedOrders: Map<String, Int>

senderOrder

a number that tells where this message fits in the sequence of all messages that the current sender has contributed to this thread.

val senderOrder: Int

threadId

a thread ID of the message that serves as the thread start

val threadId: String