File: model.go

package info (click to toggle)
golang-github-raitonoberu-lyricsapi 0.0~git20250321.2e8c45d-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 108 kB
  • sloc: makefile: 4
file content (30 lines) | stat: -rw-r--r-- 598 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package spotify

type LyricsLine struct {
	Time  int    `json:"startTimeMs,string"`
	Words string `json:"words"`
}

type Track struct {
	ID       string   `json:"id"`
	Album    Album    `json:"album"`
	Artists  []Artist `json:"artists"`
	Duration int      `json:"duration_ms"`
	Name     string   `json:"name"`
}

type Artist struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type Album struct {
	ID   string `json:"id"`
	Name string `json:"name"`
}

type StateResult struct {
	Progress int    `json:"progress_ms"`
	Playing  bool   `json:"is_playing"`
	Item     *Track `json:"item"`
}