pda
androidJvm
app
/
net.artux.pda.repositories
/
NewsRepository
News
Repository
@
Singleton
class
NewsRepository
@
Inject
constructor
(
webservice
:
DefaultApi
,
cache
:
Cache
<
ArticleSimpleDto
>
)
Members
Constructors
News
Repository
Link copied to clipboard
@
Inject
constructor
(
webservice
:
DefaultApi
,
cache
:
Cache
<
ArticleSimpleDto
>
)
Functions
clear
Cache
Link copied to clipboard
fun
clearCache
(
)
get
Articles
Link copied to clipboard
suspend
fun
getArticles
(
)
:
Result
<
List
<
ArticleSimpleDto
>
>
get
Cached
Articles
Link copied to clipboard
fun
getCachedArticles
(
)
:
Result
<
List
<
ArticleSimpleDto
>
>