Class DecodedMessage<ContentTypes>

Type Parameters

  • ContentTypes = any

Hierarchy

  • DecodedMessage

Constructors

Properties

content: ContentTypes
contentBytes: Uint8Array
contentFallback?: string
contentTopic: string
contentType: ContentTypeId
conversation: Conversation<ContentTypes>
error?: Error
id: string
messageVersion: "v1" | "v2"
recipientAddress?: string
senderAddress: string
sent: Date

Methods

  • Type Parameters

    • ContentTypes

    Parameters

    • message: MessageV1
    • content: ContentTypes
    • contentType: ContentTypeId
    • contentBytes: Uint8Array
    • contentTopic: string
    • conversation: Conversation<ContentTypes>
    • Optional error: Error
    • Optional contentFallback: string

    Returns DecodedMessage<ContentTypes>

  • Type Parameters

    • ContentTypes

    Parameters

    • message: MessageV2
    • content: ContentTypes
    • contentType: ContentTypeId
    • contentTopic: string
    • contentBytes: Uint8Array
    • conversation: Conversation<ContentTypes>
    • senderAddress: string
    • Optional error: Error
    • Optional contentFallback: string

    Returns DecodedMessage<ContentTypes>

Generated using TypeDoc