forked from animenotifier/kitsu
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MediaRelation.go
37 lines (36 loc) · 888 Bytes
/
MediaRelation.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
package kitsu
// MediaRelation ...
type MediaRelation struct {
ID string `json:"id"`
Type string `json:"type"`
Links struct {
Self string `json:"self"`
} `json:"links"`
Attributes struct {
CreatedAt interface{} `json:"createdAt"`
UpdatedAt interface{} `json:"updatedAt"`
Role string `json:"role"`
} `json:"attributes"`
Relationships struct {
Source struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
Data struct {
Type string `json:"type"`
ID string `json:"id"`
} `json:"data"`
} `json:"source"`
Destination struct {
Links struct {
Self string `json:"self"`
Related string `json:"related"`
} `json:"links"`
Data struct {
Type string `json:"type"`
ID string `json:"id"`
} `json:"data"`
} `json:"destination"`
} `json:"relationships"`
}