More todos

This commit is contained in:
Syer10
2023-03-31 22:36:01 -04:00
parent 9312f5fd14
commit 3bbda7ba54
5 changed files with 18 additions and 0 deletions

View File

@@ -26,6 +26,10 @@ import java.util.concurrent.CompletableFuture
* - Name * - Name
* - Order * - Order
* - Default * - Default
* - Create
* - Delete
* - Add/update meta
* - Delete meta
*/ */
class CategoryQuery { class CategoryQuery {
fun category(dataFetchingEnvironment: DataFetchingEnvironment, id: Int): CompletableFuture<CategoryType> { fun category(dataFetchingEnvironment: DataFetchingEnvironment, id: Int): CompletableFuture<CategoryType> {

View File

@@ -31,6 +31,7 @@ import java.util.concurrent.CompletableFuture
* - bookmark status * - bookmark status
* - Check for updates? * - Check for updates?
* - Download * - Download
* - Delete download
*/ */
class ChapterQuery { class ChapterQuery {
fun chapter(dataFetchingEnvironment: DataFetchingEnvironment, id: Int): CompletableFuture<ChapterType> { fun chapter(dataFetchingEnvironment: DataFetchingEnvironment, id: Int): CompletableFuture<ChapterType> {

View File

@@ -30,6 +30,9 @@ import java.util.concurrent.CompletableFuture
* - Remove from category * - Remove from category
* - Check for updates * - Check for updates
* - Download x(all = -1) chapters * - Download x(all = -1) chapters
* - Delete read/all downloaded chapters
* - Add/update meta
* - Delete meta
*/ */
class MangaQuery { class MangaQuery {
fun manga(dataFetchingEnvironment: DataFetchingEnvironment, id: Int): CompletableFuture<MangaType> { fun manga(dataFetchingEnvironment: DataFetchingEnvironment, id: Int): CompletableFuture<MangaType> {

View File

@@ -16,6 +16,15 @@ import suwayomi.tachidesk.graphql.types.GlobalMetaItem
import suwayomi.tachidesk.graphql.types.MetaItem import suwayomi.tachidesk.graphql.types.MetaItem
import java.util.concurrent.CompletableFuture import java.util.concurrent.CompletableFuture
/**
* TODO Queries
* - In list of keys
*
* TODO Mutations
* - Add/update meta
* - Delete meta
*
*/
class MetaQuery { class MetaQuery {
fun meta(dataFetchingEnvironment: DataFetchingEnvironment, key: String): CompletableFuture<MetaItem?> { fun meta(dataFetchingEnvironment: DataFetchingEnvironment, key: String): CompletableFuture<MetaItem?> {
return dataFetchingEnvironment.getValueFromDataLoader<String, MetaItem?>("GlobalMetaDataLoader", key) return dataFetchingEnvironment.getValueFromDataLoader<String, MetaItem?>("GlobalMetaDataLoader", key)

View File

@@ -20,6 +20,7 @@ import java.util.concurrent.CompletableFuture
* - Filter by languages * - Filter by languages
* - Filter by name * - Filter by name
* - Filter by NSFW * - Filter by NSFW
* - In list of ids
* - Sort? * - Sort?
* *
* TODO Mutations * TODO Mutations