mirror of
https://git.sr.ht/~phw/scotty
synced 2025-04-30 21:57:06 +02:00
Unified code for backend clients and tests
This commit is contained in:
parent
9316838d59
commit
aa01ae1342
11 changed files with 220 additions and 42 deletions
|
@ -21,13 +21,13 @@ THE SOFTWARE.
|
|||
*/
|
||||
package maloja
|
||||
|
||||
type GetListensResult struct {
|
||||
type GetScrobblesResult struct {
|
||||
Status string `json:"status"`
|
||||
Listens []Listen `json:"list"`
|
||||
List []Scrobble `json:"list"`
|
||||
Pagination Pagination `json:"pagination"`
|
||||
}
|
||||
|
||||
type Listen struct {
|
||||
type Scrobble struct {
|
||||
ListenedAt int64 `json:"time"`
|
||||
Duration int64 `json:"duration"`
|
||||
// Maloja sets Origin to the name of the API key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue