Message

constructor(id: String = UUID.randomUUID().toString(), piuri: String, from: DID? = null, to: DID? = null, fromPrior: String? = null, body: String, extraHeaders: Map<String, String> = emptyMap(), createdTime: String = Clock.System.now().epochSeconds.toString(), expiresTimePlus: String = Clock.System.now().plus(1.days).epochSeconds.toString(), attachments: Array<AttachmentDescriptor> = arrayOf(), thid: String? = null, pthid: String? = null, ack: Array<String>? = emptyArray(), direction: Message.Direction = Direction.RECEIVED)(source)