pda
androidJvm
app
/
net.artux.pda.repositories
/
QuestRepository
Quest
Repository
@
Singleton
class
QuestRepository
@
Inject
constructor
(
defaultApi
:
DefaultApi
,
storyDataCache
:
Cache
<
StoryData
>
,
storyCache
:
Cache
<
StoryDto
>
,
summaryCache
:
Cache
<
Summary
>
,
questCache
:
Cache
<
StoryDto
>
,
storyMapper
:
StoryMapper
)
Members
Constructors
Quest
Repository
Link copied to clipboard
@
Inject
constructor
(
defaultApi
:
DefaultApi
,
storyDataCache
:
Cache
<
StoryData
>
,
storyCache
:
Cache
<
StoryDto
>
,
summaryCache
:
Cache
<
Summary
>
,
questCache
:
Cache
<
StoryDto
>
,
storyMapper
:
StoryMapper
)
Functions
clear
Cache
Link copied to clipboard
fun
clearCache
(
)
get
Cached
Story
Link copied to clipboard
fun
getCachedStory
(
storyId
:
Int
)
:
Result
<
StoryDto
>
get
Cached
Story
Data
Link copied to clipboard
fun
getCachedStoryData
(
)
:
Result
<
StoryData
>
get
Chapter
Link copied to clipboard
suspend
fun
getChapter
(
storyId
:
Int
,
chapterId
:
Int
)
:
Result
<
ChapterDto
>
get
Current
Chapter
Id
Link copied to clipboard
fun
getCurrentChapterId
(
)
:
Int
get
Current
State
Link copied to clipboard
fun
getCurrentState
(
)
:
StoryStateModel
?
get
Current
Story
Id
Link copied to clipboard
fun
getCurrentStoryId
(
)
:
Int
get
Map
Link copied to clipboard
suspend
fun
getMap
(
storyId
:
Int
,
mapId
:
Int
)
:
Result
<
GameMap
>
get
Story
Data
Link copied to clipboard
suspend
fun
getStoryData
(
)
:
Result
<
StoryData
>
reset
Data
Link copied to clipboard
suspend
fun
resetData
(
)
:
Result
<
StoryData
>
set
Wearable
Item
Link copied to clipboard
suspend
fun
setWearableItem
(
id
:
UUID
)
:
Result
<
Status
>
sync
Member
Link copied to clipboard
suspend
fun
syncMember
(
map
:
CommandBlock
)
:
Result
<
StoryData
>
update
Stories
Link copied to clipboard
suspend
fun
updateStories
(
)
:
Result
<
List
<
StoryInfo
>
>