downloadPublicAsset

open suspend override fun downloadPublicAsset(assetId: String, assetDomain: String?): <Error class: unknown class><<Error class: unknown class>, FetchedAssetData>

Method used to download and persist to local memory a public asset

Return

Either a CoreFailure if anything went wrong, or the FetchedAssetData which consists of Path to the decoded asset and a Boolean indicating whether the asset has just been downloaded (true) or was already present locally (false)

Parameters

assetId

the asset identifier