YTSFlix_Go/ytsclient/reponses.go

33 lines
955 B
Go
Raw Normal View History

2018-11-04 14:58:15 +00:00
package ytsclient
type ListResponse struct {
Status string `json:"status"`
StatusMessage string `json:"status_message"`
Data struct {
MovieCount int `json:"movie_count"`
Limit int `json:"limit"`
PageNumber int `json:"page_number"`
Movies []Movie `json:"movies"`
} `json:"data"`
Meta struct {
ServerTime int `json:"server_time"`
ServerTimezone string `json:"server_timezone"`
APIVersion int `json:"api_version"`
ExecutionTime string `json:"execution_time"`
} `json:"@meta"`
}
type MovieResponse struct {
Status string `json:"status"`
StatusMessage string `json:"status_message"`
Data struct {
Movie Movie `json:"movie"`
} `json:"data"`
Meta struct {
ServerTime int `json:"server_time"`
ServerTimezone string `json:"server_timezone"`
APIVersion int `json:"api_version"`
ExecutionTime string `json:"execution_time"`
} `json:"@meta"`
}