-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
38 lines (32 loc) · 878 Bytes
/
types.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
package trakt
type IDs struct {
Trakt int `json:"trakt,omitempty"`
Slug string `json:"slug,omitempty"`
TVDB int `json:"tvdb,omitempty"`
IMDB string `json:"imdb,omitempty"`
TMDb int `json:"tmdb,omitempty"`
}
type Movie struct {
Title string `json:"title,omitempty"`
Year int `json:"year,omitempty"`
IDs IDs `json:"ids,omitempty"`
}
type Show struct {
Title string `json:"title,omitempty"`
Year int `json:"year,omitempty"`
IDs IDs `json:"ids,omitempty"`
}
type Season struct {
Number int `json:"number,omitempty"`
IDs IDs `json:"ids,omitempty"`
}
type Episode struct {
Season int `json:"season,omitempty"`
Number int `json:"number,omitempty"`
Title string `json:"title,omitempty"`
IDs IDs `json:"ids,omitempty"`
}
type Person struct {
Name string `json:"name,omitempty"`
IDs IDs `json:"ids,omitempty"`
}