aboutsummaryrefslogtreecommitdiff
path: root/eventlogging
diff options
context:
space:
mode:
authorrtz12 <koenig@fagott.pw>2016-11-15 17:29:02 (UTC)
committerrtz12 <koenig@fagott.pw>2016-11-15 17:29:02 (UTC)
commit0ad174d7329e02b3f644614de0758789bb3677d4 (patch)
treee49a659c0b89bdec07cde778850b7fe002ac27ea /eventlogging
parente02ad854383265db216ed92b10c4f12408999d6a (diff)
Verrückter Anilist Import
Bestes Feature 2k16. Hashtag Make Grilist Great Again.
Diffstat (limited to 'eventlogging')
-rw-r--r--eventlogging/events.txt4
-rw-r--r--eventlogging/types.go24
2 files changed, 28 insertions, 0 deletions
diff --git a/eventlogging/events.txt b/eventlogging/events.txt
index cf07b40..b76d5db 100644
--- a/eventlogging/events.txt
+++ b/eventlogging/events.txt
@@ -8,3 +8,7 @@ EDIT_LIST
8CHANGE_GRIL_ORDER 8CHANGE_GRIL_ORDER
9VIEW_SERIES 9VIEW_SERIES
10VIEW_TAG 10VIEW_TAG
11FAV_IMPORT_ANILIST
12FAV_IMPORT_ANILIST_ASSIGNED
13FAV_IMPORT_ANILIST_CREATED
14ANILIST_CHARACTER_PAGE
diff --git a/eventlogging/types.go b/eventlogging/types.go
index 29ad89d..fcbacb9 100644
--- a/eventlogging/types.go
+++ b/eventlogging/types.go
@@ -1,5 +1,7 @@
1package eventlogging 1package eventlogging
2 2
3import "fagott.pw/goanilist"
4
3type ViewGrilData struct { 5type ViewGrilData struct {
4 EventLoggerData 6 EventLoggerData
5 GrilID int `json:"grilId"` 7 GrilID int `json:"grilId"`
@@ -64,3 +66,25 @@ type ViewTagData struct {
64 Pages int `json:"pages"` 66 Pages int `json:"pages"`
65 Page int `json:"page"` 67 Page int `json:"page"`
66} 68}
69
70type FavImportAnilistData struct {
71 EventLoggerData
72 Favourites *goanilist.FavouritesResult `json:"favs"`
73}
74
75type FavImportAnilistAssignedData struct {
76 EventLoggerData
77 AnilistID int `json:"anilistId"`
78 AssignedID int `json:"assignedId"`
79}
80
81type FavImportAnilistCreatedData struct {
82 EventLoggerData
83 AnilistID int `json:"anilistId"`
84 AssignedID int `json:"assignedId"`
85}
86
87type AnilistCharacterPageData struct {
88 EventLoggerData
89 CharacterPage *goanilist.CharacterPageResult `json:"page"`
90}