MosaicRepositoryImpl
class MosaicRepositoryImpl(network: MosaicNetwork, database: MosaicDatabase, fileSystem: MosaicFileSystem, networkParametersHolder: NetworkParametersHolder) : MosaicRepository
Constructors
Link copied to clipboard
constructor(network: MosaicNetwork, database: MosaicDatabase, fileSystem: MosaicFileSystem, networkParametersHolder: NetworkParametersHolder)
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun downloadFile(url: String, headers: Map<String, String>?, body: Any?, httpMethod: HttpMethod, targetFileName: String, mimeType: String?, onProgress: suspend (Float) -> Unit, onDownloadFinished: suspend () -> Unit, onDownloadFailure: suspend (Throwable) -> Unit): Result<Unit>
Downloads a file into the device's public/general storage (system Downloads location). See dev.catbit.mosaic.core.data.schemas.event.events.networking.DownloadFileEventSchema for the full per-platform behavior contract.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Checks the backend's cache-busting version against the locally stored one, wiping the graph/screens cache when the remote version is newer. Never blocks the caller for long (offline or any failure is captured in the returned Result rather than thrown).
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open suspend override fun uploadFile(url: String?, headers: Map<String, String>?, httpMethod: HttpMethod, contentType: String?, platformFile: PlatformFile, onProgress: suspend (Float) -> Unit): Result<UploadResult>
Link copied to clipboard
Link copied to clipboard