A fork of https://github.com/teal-fm/piper
1package models
2
3import "time"
4
5// Track represents a Spotify track
6type Track struct {
7 PlayID int64 `json:"playId"`
8 Name string `json:"name"`
9 // analogous to "track"
10 RecordingMBID *string `json:"trackMBID,omitempty"`
11 Artist []Artist `json:"artist"`
12 Album string `json:"album"`
13 // analogous to "album"
14 ReleaseMBID *string `json:"releaseMBID,omitempty"`
15 URL string `json:"url"`
16 Timestamp time.Time `json:"timestamp"`
17 DurationMs int64 `json:"durationMs"`
18 ProgressMs int64 `json:"progressMs"`
19 ServiceBaseUrl string `json:"serviceBaseUrl"`
20 ISRC string `json:"isrc"`
21 HasStamped bool `json:"hasStamped"`
22}
23
24type Artist struct {
25 Name string `json:"name"`
26 ID string `json:"id"`
27 MBID *string `json:"mbid,omitempty"`
28}