AssetApi

interface AssetApi

Inheritors

Functions

Link copied to clipboard
abstract suspend fun deleteAsset(assetId: String, assetDomain: String?, assetToken: String?): NetworkResponse<Unit>

Deletes an asset, this will try to consume api v4 (federated aware endpoint)

Link copied to clipboard
abstract suspend fun downloadAsset(assetId: String, assetDomain: String?, assetToken: String?, tempFileSink: <Error class: unknown class>): NetworkResponse<Unit>

Downloads an asset, this will try to consume api v4 (federated aware endpoint)

Link copied to clipboard
abstract suspend fun uploadAsset(metadata: <Error class: unknown class>, encryptedDataSource: () -> <Error class: unknown class>, encryptedDataSize: Long): NetworkResponse<<Error class: unknown class>>

Uploads an already encrypted asset