Types
Listen = object trackName*, artistName*: cstring releaseName*, recordingMbid*, releaseMbid*: Option[cstring] artistMbids*: Option[seq[cstring]] trackNumber*, listenedAt*: Option[int] mirrored*, preMirror*: Option[bool]
-
A normalised listen object.
- mirrored: stores the state of whether a listen to be mirrored has been submitted.
- preMirror: stores the state of whether a listen was submitted within a mirroring session.
Service = enum listenBrainzService = "listenbrainz", lastFmService = "lastfm"
-
Stores the service that the user belongs to:
- listenBrainzService: user of the ListenBrainz service
- lastFmService: user of the Last.FM service
Procs
func newListen(trackName, artistName: cstring; releaseName, recordingMbid, releaseMbid = none(cstring); artistMbids = none(seq[cstring]); trackNumber = none(int); listenedAt = none(int); mirrored, preMirror = none(bool)): Listen {. ...raises: [], tags: [], forbids: [].}
- Create new Listen object Source Edit
func newSession(id: cstring = "session"; users: seq[cstring] = @[]; mirror = none(cstring)): Session {....raises: [], tags: [], forbids: [].}
- Source Edit