Preparing search index...
The search index is not available
@xmtp/xmtp-js
@xmtp/xmtp-js
DecodedMessage
Class DecodedMessage<ContentTypes>
Type Parameters
ContentTypes
=
any
Index
Constructors
constructor
Properties
content
content
Bytes
content
Fallback?
content
Topic
content
Type
conversation
error?
id
message
Version
recipient
Address?
sender
Address
sent
Methods
to
Bytes
from
Bytes
from
V1
Message
from
V2
Message
Constructors
constructor
new
Decoded
Message
<
ContentTypes
>
(
__namedParameters
)
:
DecodedMessage
<
ContentTypes
>
Type Parameters
ContentTypes
=
any
Parameters
__namedParameters
:
Omit
<
DecodedMessage
<
ContentTypes
>
,
"toBytes"
>
Returns
DecodedMessage
<
ContentTypes
>
Properties
content
content
:
ContentTypes
content
Bytes
content
Bytes
:
Uint8Array
Optional
content
Fallback
content
Fallback
?:
string
content
Topic
content
Topic
:
string
content
Type
content
Type
:
ContentTypeId
conversation
conversation
:
Conversation
<
ContentTypes
>
Optional
error
error
?:
Error
id
id
:
string
message
Version
message
Version
:
"v1"
|
"v2"
Optional
recipient
Address
recipient
Address
?:
string
sender
Address
sender
Address
:
string
sent
sent
:
Date
Methods
to
Bytes
to
Bytes
(
)
:
Uint8Array
Returns
Uint8Array
Static
from
Bytes
from
Bytes
<
ContentTypes
>
(
data
,
client
)
:
Promise
<
DecodedMessage
<
ContentTypes
>
>
Type Parameters
ContentTypes
Parameters
data
:
Uint8Array
client
:
Client
<
ContentTypes
>
Returns
Promise
<
DecodedMessage
<
ContentTypes
>
>
Static
from
V1
Message
from
V1
Message
<
ContentTypes
>
(
message
,
content
,
contentType
,
contentBytes
,
contentTopic
,
conversation
,
error
?
,
contentFallback
?
)
:
DecodedMessage
<
ContentTypes
>
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
>
Static
from
V2
Message
from
V2
Message
<
ContentTypes
>
(
message
,
content
,
contentType
,
contentTopic
,
contentBytes
,
conversation
,
senderAddress
,
error
?
,
contentFallback
?
)
:
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
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
content
content
Bytes
content
Fallback
content
Topic
content
Type
conversation
error
id
message
Version
recipient
Address
sender
Address
sent
to
Bytes
from
Bytes
from
V1
Message
from
V2
Message
@xmtp/xmtp-js
AuthCache
BrowserStoragePersistence
Ciphertext
Client
CompositeCodec
ConsentListEntry
ContentTypeId
ConversationV1
ConversationV2
Conversations
DecodedMessage
EncryptedPersistence
HttpApiClient
InMemoryKeystore
InMemoryPersistence
InvitationV1
KeyGeneratorKeystoreProvider
LocalAuthenticator
MessageV1
MessageV2
NetworkKeystoreProvider
Loading...
Generated using
TypeDoc