Skip to main content

Message class

A class implementing IMessage.

This is used by MessageHandler.

Signature:

export declare class Message implements IMessage

Implements: IMessage

Constructors

ConstructorModifiersDescription
(constructor)(data)Constructs a new instance of the Message class

Properties

PropertyModifiersTypeDescription
attachments?IMessageAttachment[](Optional)
createdAt?string(Optional)
credentials?VerifiableCredential[](Optional)
data?any(Optional)
expiresAt?string(Optional)
from?string(Optional)
idstring
metaData?IMetaData[](Optional)
presentations?VerifiablePresentation[](Optional)
raw?string(Optional)
replyTo?string[](Optional)
replyUrl?string(Optional)
returnRoute?string(Optional)
threadId?string(Optional)
to?string(Optional)
typestring

Methods

MethodModifiersDescription
addMetaData(meta)
getLastMetaData()
isValid()