Unified code for backend clients and tests

This commit is contained in:
Philipp Wolfer 2023-11-12 16:28:23 +01:00
parent 9316838d59
commit aa01ae1342
No known key found for this signature in database
GPG key ID: 8FDF744D4919943B
11 changed files with 220 additions and 42 deletions

View file

@ -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