Files
supersonic/backend/mediaprovider/model.go
T

75 lines
1.1 KiB
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
AlbumCount int
}
type ArtistWithAlbums struct {
Artist
Albums []Album
}
type ArtistInfo struct {
Biography string
LastFMUrl string
ImageURL string
SimilarArtists []Artist
}
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
Album string
Rating int
Favorite bool
Size int64
PlayCount int
FilePath string
}
type Playlist struct {
ID string
CoverArtID string
Name string
Description string
Public bool
Owner string
}
type PlaylistWithTracks struct {
Playlist
Tracks []Track
}