kindlysdk
Toggle table of contents
release
Target filter
release
Switch theme
Search in API
Skip to content
kindlysdk
kindlysdk
/
no.kindly.chatsdk.chat.sdk.data.entity.attachment.response
/
AttachmentResponse
Attachment
Response
@
Serializable
data
class
AttachmentResponse
(
val
name
:
String
,
val
type
:
String
,
val
status
:
String
,
val
sender
:
String
,
val
storagePath
:
String
,
val
created
:
String
?
=
null
,
val
sizeKb
:
String
,
val
url
:
String
?
=
null
,
val
id
:
String
,
val
uploadUrl
:
String
?
=
null
)
Members
Members & Extensions
Constructors
Attachment
Response
Link copied to clipboard
constructor
(
name
:
String
,
type
:
String
,
status
:
String
,
sender
:
String
,
storagePath
:
String
,
created
:
String
?
=
null
,
sizeKb
:
String
,
url
:
String
?
=
null
,
id
:
String
,
uploadUrl
:
String
?
=
null
)
Properties
created
Link copied to clipboard
val
created
:
String
?
id
Link copied to clipboard
val
id
:
String
name
Link copied to clipboard
val
name
:
String
sender
Link copied to clipboard
val
sender
:
String
size
Kb
Link copied to clipboard
@
SerialName
(
value
=
"size_kb"
)
val
sizeKb
:
String
status
Link copied to clipboard
val
status
:
String
storage
Path
Link copied to clipboard
@
SerialName
(
value
=
"storage_path"
)
val
storagePath
:
String
type
Link copied to clipboard
val
type
:
String
upload
Url
Link copied to clipboard
@
SerialName
(
value
=
"upload_url"
)
val
uploadUrl
:
String
?
url
Link copied to clipboard
val
url
:
String
?
Functions
to
Attachment
Link copied to clipboard
fun
AttachmentResponse
.
toAttachment
(
)
:
Attachment
Converts
AttachmentResponse
to
Attachment
.
to
File
Attachment
Link copied to clipboard
fun
AttachmentResponse
.
toFileAttachment
(
)
:
FileAttachment