package world.respect.datalayer.opds

import world.respect.datalayer.DataReadyState
import world.respect.datalayer.networkvalidation.BaseDataSourceValidationHelper
import world.respect.lib.opds.model.OpdsFeed
import world.respect.lib.opds.model.OpdsPublication

interface OpdsDataSourceLocal: OpdsDataSource {

    val feedNetworkValidationHelper: BaseDataSourceValidationHelper

    val publicationNetworkValidationHelper: BaseDataSourceValidationHelper

    suspend fun updateOpdsFeed(feed: DataReadyState<OpdsFeed>)

    suspend fun updateOpdsPublication(publication: DataReadyState<OpdsPublication>)

}