Compare commits
No commits in common. "8ce29414f4f8fdd1f3968c4338bdcb28ee31911d" and "de98e6f444cf0b31206d685b71b6d34fe6088442" have entirely different histories.
8ce29414f4
...
de98e6f444
34
types.go
34
types.go
@ -9,10 +9,8 @@ type User struct {
|
|||||||
Name string `json:"name,omitempty"`
|
Name string `json:"name,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MediaID int
|
|
||||||
|
|
||||||
type Media struct {
|
type Media struct {
|
||||||
ID MediaID `json:"id"`
|
ID int `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"`
|
||||||
@ -115,12 +113,10 @@ const (
|
|||||||
MediaSourcePictureBook MediaSource = "PICTURE_BOOK"
|
MediaSourcePictureBook MediaSource = "PICTURE_BOOK"
|
||||||
)
|
)
|
||||||
|
|
||||||
type MediaTrailerID string
|
|
||||||
|
|
||||||
type MediaTrailer struct {
|
type MediaTrailer struct {
|
||||||
ID MediaTrailerID `json:"id"`
|
ID string `json:"id"`
|
||||||
Site string `json:"site"`
|
Site string `json:"site"`
|
||||||
Thumbnail string `json:"thumbnail"`
|
Thumbnail string `json:"thumbnail"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MediaCoverImage struct {
|
type MediaCoverImage struct {
|
||||||
@ -130,10 +126,8 @@ type MediaCoverImage struct {
|
|||||||
Color string `json:"color"`
|
Color string `json:"color"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type MediaTagID int
|
|
||||||
|
|
||||||
type MediaTag struct {
|
type MediaTag struct {
|
||||||
MediaTagID int `json:"id"`
|
ID 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"`
|
||||||
@ -179,12 +173,10 @@ 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 MediaListID `json:"id"`
|
ID int `json:"id"`
|
||||||
UserID int `json:"userId"`
|
UserID int `json:"userId"`
|
||||||
MediaID MediaID `json:"mediaId"`
|
MediaID int `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"`
|
||||||
@ -213,12 +205,10 @@ const (
|
|||||||
MediaListStatusRepeating MediaListStatus = "REPEATING"
|
MediaListStatusRepeating MediaListStatus = "REPEATING"
|
||||||
)
|
)
|
||||||
|
|
||||||
type AiringScheduleID int
|
|
||||||
|
|
||||||
type AiringSchedule struct {
|
type AiringSchedule struct {
|
||||||
ID AiringScheduleID `json:"id"`
|
ID int `json:"id"`
|
||||||
MediaID MediaID `json:"mediaId"`
|
MediaID int `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