InsertCargoUseCase

class InsertCargoUseCase @Inject constructor(repo: SvkRepository, resourceProvider: ResourceProvider)

Use case responsible for inserting a new cargo into the local database.

Parameters

repo

The repository providing access to data sources.

resourceProvider

The resource provider for accessing application resources.

Constructors

Link copied to clipboard
@Inject
constructor(repo: SvkRepository, resourceProvider: ResourceProvider)

Functions

Link copied to clipboard
operator fun invoke(cargo: Cargo): Flow<Resource<String>>

Invokes the use case to insert a new cargo into the local database.