AssetApiV4
internal open class AssetApiV4(authenticatedNetworkClient: AuthenticatedNetworkClient, selfUserId: <Error class: unknown class>) : AssetApiV3
Inheritors
Constructors
Link copied to clipboard
internal constructor(authenticatedNetworkClient: AuthenticatedNetworkClient, selfUserId: <Error class: unknown class>)
Functions
Link copied to clipboard
open suspend override 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
open suspend override 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
open suspend override fun uploadAsset(metadata: <Error class: unknown class>, encryptedDataSource: () -> <Error class: unknown class>, encryptedDataSize: Long): NetworkResponse<<Error class: unknown class>>
Uploads an already encrypted asset