QuestRepository

@Singleton
class QuestRepository @Inject constructor(defaultApi: DefaultApi, storyDataCache: Cache<StoryData>, storyCache: Cache<StoryDto>, summaryCache: Cache<Summary>, questCache: Cache<StoryDto>, storyMapper: StoryMapper)

Constructors

Link copied to clipboard
@Inject
constructor(defaultApi: DefaultApi, storyDataCache: Cache<StoryData>, storyCache: Cache<StoryDto>, summaryCache: Cache<Summary>, questCache: Cache<StoryDto>, storyMapper: StoryMapper)

Functions

Link copied to clipboard
Link copied to clipboard
fun getCachedStory(storyId: Int): Result<StoryDto>
Link copied to clipboard
fun getCachedStoryData(): Result<StoryData>
Link copied to clipboard
suspend fun getChapter(storyId: Int, chapterId: Int): Result<ChapterDto>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
suspend fun getMap(storyId: Int, mapId: Int): Result<GameMap>
Link copied to clipboard
suspend fun getStoryData(): Result<StoryData>
Link copied to clipboard
suspend fun resetData(): Result<StoryData>
Link copied to clipboard
suspend fun setWearableItem(id: UUID): Result<Status>
Link copied to clipboard
suspend fun syncMember(map: CommandBlock): Result<StoryData>
Link copied to clipboard
suspend fun updateStories(): Result<List<StoryInfo>>