trixnity-clientserverapi-client
3.7.0-beta2
common
trixnity-clientserverapi-client
/
net.folivo.trixnity.clientserverapi.client
/
MediaApiClientImpl
Media
Api
Client
Impl
class
MediaApiClientImpl
(
httpClient
:
MatrixClientServerApiHttpClient
)
:
MediaApiClient
Members
Constructors
Media
Api
Client
Impl
Link copied to clipboard
constructor
(
httpClient
:
MatrixClientServerApiHttpClient
)
Functions
download
Link copied to clipboard
open
suspend override
fun
download
(
mxcUri
:
String
,
allowRemote
:
Boolean
?
,
progress
:
MutableStateFlow
<
FileTransferProgress
?
>
?
,
timeout
:
Long
)
:
Result
<
Media
>
download
Thumbnail
Link copied to clipboard
open
suspend override
fun
downloadThumbnail
(
mxcUri
:
String
,
width
:
Long
,
height
:
Long
,
method
:
ThumbnailResizingMethod
,
allowRemote
:
Boolean
?
,
progress
:
MutableStateFlow
<
FileTransferProgress
?
>
?
)
:
Result
<
Media
>
get
Config
Link copied to clipboard
open
suspend override
fun
getConfig
(
)
:
Result
<
GetMediaConfig.Response
>
get
Url
Preview
Link copied to clipboard
open
suspend override
fun
getUrlPreview
(
url
:
String
,
timestamp
:
Long
?
)
:
Result
<
GetUrlPreview.Response
>
upload
Link copied to clipboard
open
suspend override
fun
upload
(
media
:
Media
,
progress
:
MutableStateFlow
<
FileTransferProgress
?
>
?
,
timeout
:
Long
)
:
Result
<
UploadMedia.Response
>