Compare commits
2 Commits
de98e6f444
...
8ce29414f4
Author | SHA1 | Date | |
---|---|---|---|
|
8ce29414f4 | ||
|
faa5474d22 |
24
types.go
24
types.go
@ -9,8 +9,10 @@ type User struct {
|
|||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type MediaID int
|
||||||
|
|
||||||
type Media struct {
|
type Media struct {
|
||||||
ID int `json:"id"`
|
ID MediaID `json:"id"`
|
||||||
Title MediaTitle `json:"title"`
|
Title MediaTitle `json:"title"`
|
||||||
Type MediaType `json:"type"`
|
Type MediaType `json:"type"`
|
||||||
Format MediaFormat `json:"format"`
|
Format MediaFormat `json:"format"`
|
||||||
@ -113,8 +115,10 @@ const (
|
|||||||
MediaSourcePictureBook MediaSource = "PICTURE_BOOK"
|
MediaSourcePictureBook MediaSource = "PICTURE_BOOK"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type MediaTrailerID string
|
||||||
|
|
||||||
type MediaTrailer struct {
|
type MediaTrailer struct {
|
||||||
ID string `json:"id"`
|
ID MediaTrailerID `json:"id"`
|
||||||
Site string `json:"site"`
|
Site string `json:"site"`
|
||||||
Thumbnail string `json:"thumbnail"`
|
Thumbnail string `json:"thumbnail"`
|
||||||
}
|
}
|
||||||
@ -126,8 +130,10 @@ type MediaCoverImage struct {
|
|||||||
Color string `json:"color"`
|
Color string `json:"color"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type MediaTagID int
|
||||||
|
|
||||||
type MediaTag struct {
|
type MediaTag struct {
|
||||||
ID int `json:"id"`
|
MediaTagID int `json:"id"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
Description string `json:"description"`
|
Description string `json:"description"`
|
||||||
Category string `json:"category"`
|
Category string `json:"category"`
|
||||||
@ -173,10 +179,12 @@ func (d Seconds) Duration() time.Duration {
|
|||||||
return time.Duration(d) * time.Second
|
return time.Duration(d) * time.Second
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type MediaListID int
|
||||||
|
|
||||||
type MediaList struct {
|
type MediaList struct {
|
||||||
ID int `json:"id"`
|
ID MediaListID `json:"id"`
|
||||||
UserID int `json:"userId"`
|
UserID int `json:"userId"`
|
||||||
MediaID int `json:"mediaId"`
|
MediaID MediaID `json:"mediaId"`
|
||||||
Status MediaListStatus `json:"status"`
|
Status MediaListStatus `json:"status"`
|
||||||
Score float64 `json:"score"`
|
Score float64 `json:"score"`
|
||||||
Progress int `json:"progress"`
|
Progress int `json:"progress"`
|
||||||
@ -205,9 +213,11 @@ const (
|
|||||||
MediaListStatusRepeating MediaListStatus = "REPEATING"
|
MediaListStatusRepeating MediaListStatus = "REPEATING"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
type AiringScheduleID int
|
||||||
|
|
||||||
type AiringSchedule struct {
|
type AiringSchedule struct {
|
||||||
ID int `json:"id"`
|
ID AiringScheduleID `json:"id"`
|
||||||
MediaID int `json:"mediaId"`
|
MediaID MediaID `json:"mediaId"`
|
||||||
AiringAt UnixTime `json:"airingAt"`
|
AiringAt UnixTime `json:"airingAt"`
|
||||||
TimeUntilAiring Seconds `json:"timeUntilAiring"`
|
TimeUntilAiring Seconds `json:"timeUntilAiring"`
|
||||||
Episode int `json:"episode"`
|
Episode int `json:"episode"`
|
||||||
|
Loading…
Reference in New Issue
Block a user