toggle menu
trixnity-clientserverapi-client
4.3.11
common
switch theme
search in API
trixnity-clientserverapi-client
/
net.folivo.trixnity.clientserverapi.client
/
MediaApiClient
Media
Api
Client
interface
MediaApiClient
Inheritors
MediaApiClientImpl
Members
Functions
create
Media
Link copied to clipboard
abstract
suspend
fun
createMedia
(
)
:
Result
<
CreateMedia.Response
>
download
Link copied to clipboard
abstract
suspend
fun
download
(
mxcUri
:
String
,
allowRemote
:
Boolean
?
=
null
,
progress
:
MutableStateFlow
<
FileTransferProgress
?
>
?
=
null
,
timeout
:
Duration
=
Duration.INFINITE
)
:
Result
<
Media
>
abstract
suspend
fun
download
(
mxcUri
:
String
,
allowRemote
:
Boolean
?
=
null
,
progress
:
MutableStateFlow
<
FileTransferProgress
?
>
?
=
null
,
timeout
:
Duration
=
Duration.INFINITE
,
downloadHandler
:
suspend
(
Media
)
->
Unit
)
:
Result
<
Unit
>
download
Thumbnail
Link copied to clipboard
abstract
suspend
fun
downloadThumbnail
(
mxcUri
:
String
,
width
:
Long
,
height
:
Long
,
method
:
ThumbnailResizingMethod
,
allowRemote
:
Boolean
?
=
null
,
progress
:
MutableStateFlow
<
FileTransferProgress
?
>
?
=
null
,
timeout
:
Duration
=
Duration.INFINITE
)
:
Result
<
Media
>
abstract
suspend
fun
downloadThumbnail
(
mxcUri
:
String
,
width
:
Long
,
height
:
Long
,
method
:
ThumbnailResizingMethod
,
allowRemote
:
Boolean
?
=
null
,
progress
:
MutableStateFlow
<
FileTransferProgress
?
>
?
=
null
,
timeout
:
Duration
=
Duration.INFINITE
,
downloadHandler
:
suspend
(
Media
)
->
Unit
)
:
Result
<
Unit
>
get
Config
Link copied to clipboard
abstract
suspend
fun
getConfig
(
)
:
Result
<
GetMediaConfig.Response
>
get
Url
Preview
Link copied to clipboard
abstract
suspend
fun
getUrlPreview
(
url
:
String
,
timestamp
:
Long
?
=
null
)
:
Result
<
GetUrlPreview.Response
>
upload
Link copied to clipboard
abstract
suspend
fun
upload
(
media
:
Media
,
progress
:
MutableStateFlow
<
FileTransferProgress
?
>
?
=
null
,
timeout
:
Duration
=
Duration.INFINITE
)
:
Result
<
UploadMedia.Response
>
abstract
suspend
fun
upload
(
serverName
:
String
,
mediaId
:
String
,
media
:
Media
,
progress
:
MutableStateFlow
<
FileTransferProgress
?
>
?
=
null
,
timeout
:
Duration
=
Duration.INFINITE
)
:
Result
<
Unit
>