-
Notifications
You must be signed in to change notification settings - Fork 3
/
LibraryEntry.go
95 lines (91 loc) · 2.44 KB
/
LibraryEntry.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
package kitsu
import "time"
// Relationship ...
type Relationship struct {
ID string `json:"id"`
Type string `json:"type"`
}
// LibraryEntry ...
type LibraryEntry struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
CreatedAt time.Time `json:"createdAt"`
UpdatedAt time.Time `json:"updatedAt"`
Status string `json:"status"`
Progress int `json:"progress"`
VolumesOwned int `json:"volumesOwned"`
Reconsuming bool `json:"reconsuming"`
ReconsumeCount int `json:"reconsumeCount"`
Notes string `json:"notes"`
Private bool `json:"private"`
ProgressedAt interface{} `json:"progressedAt"`
StartedAt interface{} `json:"startedAt"`
FinishedAt interface{} `json:"finishedAt"`
Rating string `json:"rating"`
RatingTwenty int `json:"ratingTwenty"`
} `json:"attributes"`
Relationships struct {
User struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
} `json:"user"`
Anime struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
Data *Relationship `json:"data"`
} `json:"anime"`
Manga struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
} `json:"manga"`
Drama struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
} `json:"drama"`
Review struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
} `json:"review"`
MediaReaction struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
} `json:"mediaReaction"`
Media struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
} `json:"media"`
Unit struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
} `json:"unit"`
NextUnit struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
} `json:"nextUnit"`
} `json:"relationships"`
// Custom fields, added by this client.
// Doesn't really exist in the API
Anime *Anime
}