NewsRepository

@Singleton
class NewsRepository @Inject constructor(webservice: DefaultApi, cache: Cache<ArticleSimpleDto>)

Constructors

Link copied to clipboard
@Inject
constructor(webservice: DefaultApi, cache: Cache<ArticleSimpleDto>)

Functions

Link copied to clipboard
Link copied to clipboard
suspend fun getArticles(): Result<List<ArticleSimpleDto>>
Link copied to clipboard
fun getCachedArticles(): Result<List<ArticleSimpleDto>>