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
* - Order
* - Default
* - Create
* - Delete
* - Add/update meta
* - Delete meta
*/
class CategoryQuery {
fun category(dataFetchingEnvironment: DataFetchingEnvironment, id: Int): CompletableFuture<CategoryType> {

View File

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

View File

@@ -30,6 +30,9 @@ import java.util.concurrent.CompletableFuture
* - Remove from category
* - Check for updates
* - Download x(all = -1) chapters
* - Delete read/all downloaded chapters
* - Add/update meta
* - Delete meta
*/
class MangaQuery {
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 java.util.concurrent.CompletableFuture
/**
* TODO Queries
* - In list of keys
*
* TODO Mutations
* - Add/update meta
* - Delete meta
*
*/
class MetaQuery {
fun meta(dataFetchingEnvironment: DataFetchingEnvironment, key: String): CompletableFuture<MetaItem?> {
return dataFetchingEnvironment.getValueFromDataLoader<String, MetaItem?>("GlobalMetaDataLoader", key)

View File

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