DecodedMessage
Class: DecodedMessage
Constructors
constructor
new DecodedMessage(__namedParameters
)
Parameters
Name | Type |
---|---|
__namedParameters | DecodedMessage |
Defined in
Properties
content
content: any
Defined in
contentTopic
contentTopic: string
Defined in
contentType
contentType: ContentTypeId
Defined in
conversation
conversation: Conversation
Defined in
error
Optional
error: Error
Defined in
id
id: string
Defined in
messageVersion
messageVersion: "v1"
| "v2"
Defined in
recipientAddress
Optional
recipientAddress: string
Defined in
senderAddress
senderAddress: string
Defined in
sent
sent: Date
Defined in
Methods
fromV1Message
Static
fromV1Message(message
, content
, contentType
, contentTopic
, conversation
, error?
): DecodedMessage
Parameters
Name | Type |
---|---|
message | MessageV1 |
content | any |
contentType | ContentTypeId |
contentTopic | string |
conversation | Conversation |
error? | Error |
Returns
Defined in
fromV2Message
Static
fromV2Message(message
, content
, contentType
, contentTopic
, conversation
, error?
): DecodedMessage
Parameters
Name | Type |
---|---|
message | MessageV2 |
content | any |
contentType | ContentTypeId |
contentTopic | string |
conversation | Conversation |
error? | Error |