library
androidJvm
library
/
org.xmtp.android.library.codecs
/
AttachmentCodec
Attachment
Codec
data
class
AttachmentCodec
(
var
contentType
:
ContentTypeId
=
ContentTypeAttachment
)
:
ContentCodec
<
Attachment
>
Members
Constructors
Attachment
Codec
Link copied to clipboard
constructor
(
contentType
:
ContentTypeId
=
ContentTypeAttachment
)
Functions
decode
Link copied to clipboard
open
override
fun
decode
(
content
:
EncodedContent
)
:
Attachment
encode
Link copied to clipboard
open
override
fun
encode
(
content
:
Attachment
)
:
EncodedContent
fallback
Link copied to clipboard
open
override
fun
fallback
(
content
:
Attachment
)
:
String
?
should
Push
Link copied to clipboard
open
override
fun
shouldPush
(
content
:
Attachment
)
:
Boolean
Properties
content
Type
Link copied to clipboard
open
override
var
contentType
:
ContentTypeId