getTaxonomyData

suspend fun <T : TaxonomyEntity> getTaxonomyData(    taxonomy: Taxonomy<T>,     checkUpdate: Boolean,     dao: AbstractDao<T, *>,     taxonomiesRepository: TaxonomiesRepository): List<T>

Parameters

taxonomy
checkUpdate

defines if the source of data must be refresh from server if it has been update there.

  • If checkUpdate is true (or local database is empty) then force-load it from the server,

  • else from the local database.

dao

used to check if there is data saved in the local database.