Preparing search index...
The search index is not available
@xmtp/react-native-sdk
@xmtp/react-native-sdk
DecodedMessage
Class DecodedMessage<ContentType>
Type Parameters
ContentType
extends
DefaultContentTypes
[
number
]
=
DefaultContentTypes
[
number
]
Index
Constructors
constructor
Properties
child
Messages?
content
Type
Id
delivery
Status
fallback
id
native
Content
sender
Inbox
Id
sent
Ns
topic
Methods
content
from
from
Object
Constructors
constructor
new
Decoded
Message
<
ContentType
>
(
id
,
topic
,
contentTypeId
,
senderInboxId
,
sentNs
,
content
,
fallback
,
deliveryStatus
?
,
childMessages
?
)
:
DecodedMessage
<
ContentType
>
Type Parameters
ContentType
extends
ContentCodec
<
any
>
=
ContentCodec
<
any
>
Parameters
id
:
MessageId
topic
:
ConversationTopic
contentTypeId
:
string
senderInboxId
:
string
sentNs
:
number
content
:
any
fallback
:
undefined
|
string
deliveryStatus
:
MessageDeliveryStatus
= MessageDeliveryStatus.PUBLISHED
Optional
childMessages
:
DecodedMessage
<
ContentType
>
[]
Returns
DecodedMessage
<
ContentType
>
Properties
Optional
child
Messages
child
Messages
?:
DecodedMessage
<
ContentType
>
[]
content
Type
Id
content
Type
Id
:
string
delivery
Status
delivery
Status
:
MessageDeliveryStatus
= MessageDeliveryStatus.PUBLISHED
fallback
fallback
:
undefined
|
string
id
id
:
MessageId
native
Content
native
Content
:
NativeMessageContent
sender
Inbox
Id
sender
Inbox
Id
:
string
sent
Ns
sent
Ns
:
number
topic
topic
:
ConversationTopic
Methods
content
content
(
)
:
ExtractDecodedType
<
ContentType
>
Returns
ExtractDecodedType
<
ContentType
>
Static
from
from
<
ContentType
,
ContentTypes
>
(
json
)
:
DecodedMessageUnion
<
ContentTypes
>
Type Parameters
ContentType
extends
ContentCodec
<
any
>
=
ContentCodec
<
any
>
ContentTypes
extends
DefaultContentTypes
=
ContentType
[]
Parameters
json
:
string
Returns
DecodedMessageUnion
<
ContentTypes
>
Static
from
Object
from
Object
<
ContentType
>
(
object
)
:
DecodedMessage
<
ContentType
>
Type Parameters
ContentType
extends
ContentCodec
<
any
>
=
ContentCodec
<
any
>
Parameters
object
:
{
content
:
any
;
contentTypeId
:
string
;
deliveryStatus
:
undefined
|
MessageDeliveryStatus
;
fallback
:
undefined
|
string
;
id
:
MessageId
;
senderInboxId
:
string
;
sentNs
:
number
;
topic
:
ConversationTopic
;
}
content
:
any
content
Type
Id
:
string
delivery
Status
:
undefined
|
MessageDeliveryStatus
fallback
:
undefined
|
string
id
:
MessageId
sender
Inbox
Id
:
string
sent
Ns
:
number
topic
:
ConversationTopic
Returns
DecodedMessage
<
ContentType
>
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
On This Page
constructor
child
Messages
content
Type
Id
delivery
Status
fallback
id
native
Content
sender
Inbox
Id
sent
Ns
topic
content
from
from
Object
@xmtp/react-native-sdk
Loading...