aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@protonmail.ch>2022-02-23 22:04:18 +0530
committerVidhu Kant Sharma <vidhukant@protonmail.ch>2022-02-23 22:04:18 +0530
commita815c4ea4aa829dedd2cff7f403788896ee0887d (patch)
treebab751d8be3d2f94a36e963214d58caff34f7ea4
parent678b73e8a648f387339d0e23e2837a0cd493946f (diff)
pushing barebones structs for user/manga
-rw-r--r--user/manga/client.go23
-rw-r--r--user/manga/mangalist.structs.go44
2 files changed, 67 insertions, 0 deletions
diff --git a/user/manga/client.go b/user/manga/client.go
new file mode 100644
index 0000000..272bfff
--- /dev/null
+++ b/user/manga/client.go
@@ -0,0 +1,23 @@
+/* MAL2Go - MyAnimeList V2 API wrapper for Go
+ * Copyright (C) 2022 Vidhu Kant Sharma <vidhukant@protonmail.ch>
+
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+package manga
+
+import (
+ "github.com/MikunoNaka/MAL2Go/util"
+)
+
+type Client util.DefaultClient
diff --git a/user/manga/mangalist.structs.go b/user/manga/mangalist.structs.go
new file mode 100644
index 0000000..860163b
--- /dev/null
+++ b/user/manga/mangalist.structs.go
@@ -0,0 +1,44 @@
+/* MAL2Go - MyAnimeList V2 API wrapper for Go
+ * Copyright (C) 2022 Vidhu Kant Sharma <vidhukant@protonmail.ch>
+
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>. */
+
+package manga
+
+import (
+ "github.com/MikunoNaka/MAL2Go/util"
+ "github.com/MikunoNaka/MAL2Go/manga"
+)
+
+type MangaListRaw struct {
+ Data []struct {
+ Manga manga.Manga `json:"node"`
+ ListStatus manga.ListStatus `json:"list_status"`
+ } `json:"data"`
+ Paging util.ListPaging `json:"paging"`
+}
+
+type UpdateMangaData struct {
+ Status string
+ IsRereading bool
+ Score int
+ VolumesRead int
+ ChaptersRead int
+ Priority int
+ TimesReread int
+ // NOTE: idk what RereadValue is
+ RereadValue int
+ Tags string
+ Comments string
+}