pda
androidJvm
app
/
net.artux.pda.repositories
/
NoteRepository
Note
Repository
@
Singleton
class
NoteRepository
@
Inject
constructor
(
webservice
:
DefaultApi
,
cache
:
Cache
<
NoteDto
>
)
Members
Constructors
Note
Repository
Link copied to clipboard
@
Inject
constructor
(
webservice
:
DefaultApi
,
cache
:
Cache
<
NoteDto
>
)
Functions
clear
Cache
Link copied to clipboard
fun
clearCache
(
)
create
Note
Link copied to clipboard
suspend
fun
createNote
(
noteCreateDto
:
NoteCreateDto
)
:
Result
<
NoteDto
>
delete
Note
Link copied to clipboard
suspend
fun
deleteNote
(
uuid
:
UUID
)
:
Result
<
Status
>
edit
Note
Link copied to clipboard
suspend
fun
editNote
(
noteCreateDto
:
NoteCreateDto
,
uuid
:
UUID
)
:
Result
<
NoteDto
>
get
Cached
Note
Link copied to clipboard
fun
getCachedNote
(
id
:
UUID
)
:
Result
<
NoteDto
>
get
Cached
Notes
Link copied to clipboard
fun
getCachedNotes
(
)
:
Result
<
List
<
NoteDto
>
>
get
Notes
Link copied to clipboard
suspend
fun
getNotes
(
)
:
Result
<
List
<
NoteDto
>
>