62 lines
923 B
Go
62 lines
923 B
Go
package mediaprovider
|
|
|
|
type Album struct {
|
|
ID string
|
|
CoverArtID string
|
|
Name string
|
|
Duration int
|
|
ArtistIDs []string
|
|
ArtistNames []string
|
|
Year int
|
|
Genres []string
|
|
TrackCount int
|
|
Favorite bool
|
|
}
|
|
|
|
type AlbumWithTracks struct {
|
|
Album
|
|
Tracks []Track
|
|
}
|
|
|
|
type Artist struct {
|
|
ID string
|
|
Name string
|
|
Albums []Album
|
|
}
|
|
|
|
type Genre struct {
|
|
Name string
|
|
AlbumCount int
|
|
TrackCount int
|
|
}
|
|
|
|
type Track struct {
|
|
ID string
|
|
CoverArtID string
|
|
ParentID string
|
|
Name string
|
|
Duration int
|
|
Genre string
|
|
ArtistIDs []string
|
|
ArtistNames []string
|
|
Rating int
|
|
Favorite bool
|
|
Size int64
|
|
PlayCount int64
|
|
FilePath string
|
|
}
|
|
|
|
type Playlist struct {
|
|
ID string
|
|
CoverArtID string
|
|
Name string
|
|
Description string
|
|
Public bool
|
|
Owner string
|
|
}
|
|
|
|
type PlaylistWithTracks struct {
|
|
Playlist
|
|
Tracks []Track
|
|
}
|