forked from crunchy-labs/crunchyroll-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommon.go
36 lines (33 loc) · 1.13 KB
/
common.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
package crunchyroll
type BulkResult[T any] struct {
Items []T `json:"items"`
Total int `json:"total"`
}
type Image struct {
Height int `json:"height"`
Source string `json:"source"`
Type string `json:"type"`
Width int `json:"width"`
}
type Panel struct {
Title string `json:"title"`
PromoTitle string `json:"promo_title"`
Slug string `json:"slug"`
Playback string `json:"playback"`
PromoDescription string `json:"promo_description"`
Images struct {
Thumbnail [][]Image `json:"thumbnail"`
PosterTall [][]Image `json:"poster_tall"`
PosterWide [][]Image `json:"poster_wide"`
} `json:"images"`
ID string `json:"id"`
Description string `json:"description"`
ChannelID string `json:"channel_id"`
Type WatchlistEntryType `json:"type"`
ExternalID string `json:"external_id"`
SlugTitle string `json:"slug_title"`
// not null if Type is WATCHLISTENTRYEPISODE
EpisodeMetadata *Episode `json:"episode_metadata"`
// not null if Type is WATCHLISTENTRYSERIES
SeriesMetadata *Series `json:"series_metadata"`
}