Skip to content

Commit

Permalink
新增,可能需要支持多种类型媒体服务器的接口
Browse files Browse the repository at this point in the history
Signed-off-by: allan716 <525223688@qq.com>
  • Loading branch information
allanpk716 committed Nov 1, 2021
1 parent 753d2db commit ff325ef
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/ifaces/iMediaSystem.go
@@ -0,0 +1,4 @@
package ifaces

type iMediaSystem interface {
}
21 changes: 21 additions & 0 deletions internal/types/media_system/type.go
@@ -0,0 +1,21 @@
package media_system

type RecentlyItems struct {
Items []RecentlyItem `json:"Items,omitempty"`
TotalRecordCount int `json:"TotalRecordCount,omitempty"`
}

type RecentlyItem struct {
Name string `json:"Name,omitempty"`
Id string `json:"Id,omitempty"`
IndexNumber int `json:"IndexNumber,omitempty"`
ParentIndexNumber int `json:"ParentIndexNumber,omitempty"`
Type string `json:"Type,omitempty"`
UserData struct {
PlaybackPositionTicks int `json:"PlaybackPositionTicks"`
PlayCount int `json:"PlayCount"`
IsFavorite bool `json:"IsFavorite"`
Played bool `json:"Played"`
} `json:"UserData"`
SeriesName string `json:"SeriesName,omitempty"`
}

0 comments on commit ff325ef

Please sign in to comment.