Skip to main content

DecodedMessage

Class: DecodedMessage

Constructors

constructor

new DecodedMessage(__namedParameters)

Parameters

NameType
__namedParametersDecodedMessage

Defined in

Message.ts:259

Properties

content

content: any

Defined in

Message.ts:256


contentTopic

contentTopic: string

Defined in

Message.ts:253


contentType

contentType: ContentTypeId

Defined in

Message.ts:255


conversation

conversation: Conversation

Defined in

Message.ts:254


error

Optional error: Error

Defined in

Message.ts:257


id

id: string

Defined in

Message.ts:248


messageVersion

messageVersion: "v1" | "v2"

Defined in

Message.ts:249


recipientAddress

Optional recipientAddress: string

Defined in

Message.ts:251


senderAddress

senderAddress: string

Defined in

Message.ts:250


sent

sent: Date

Defined in

Message.ts:252

Methods

fromV1Message

Static fromV1Message(message, content, contentType, contentTopic, conversation, error?): DecodedMessage

Parameters

NameType
messageMessageV1
contentany
contentTypeContentTypeId
contentTopicstring
conversationConversation
error?Error

Returns

DecodedMessage

Defined in

Message.ts:283


fromV2Message

Static fromV2Message(message, content, contentType, contentTopic, conversation, error?): DecodedMessage

Parameters

NameType
messageMessageV2
contentany
contentTypeContentTypeId
contentTopicstring
conversationConversation
error?Error

Returns

DecodedMessage

Defined in

Message.ts:309