Skip to content

Commit

Permalink
rename type
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnewhall committed Jul 26, 2021
1 parent 7101df6 commit a8bf42e
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions radarr/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,17 +337,17 @@ type CommandResponse struct {

// History is the /api/v3/history endpoint.
type History struct {
Page int `json:"page"`
PageSize int `json:"pageSize"`
SortKey string `json:"sortKey"`
SortDirection string `json:"sortDirection"`
TotalRecords int `json:"totalRecords"`
Records []*HistoryRecords `json:"records"`
Page int `json:"page"`
PageSize int `json:"pageSize"`
SortKey string `json:"sortKey"`
SortDirection string `json:"sortDirection"`
TotalRecords int `json:"totalRecords"`
Records []*HistoryRecord `json:"records"`
}

// HistoryRecords are part of the History data.
// Not all items have all Data members. Check EventType for what you need.
type HistoryRecords struct {
type HistoryRecord struct {
ID int64 `json:"id"`
MovieID int64 `json:"movieId"`
SourceTitle string `json:"sourceTitle"`
Expand Down

0 comments on commit a8bf42e

Please sign in to comment.