Safe Haskell | None |
---|---|
Language | Haskell98 |
Scrobble.Types
Description
Scrobbling data types.
- data Config = Config {}
- data Handlers = Handlers {
- handleHandshake :: Session -> IO ()
- handleExpire :: Session -> IO ()
- handleNowPlaying :: Session -> NowPlaying -> IO ()
- handleSubmissions :: Session -> [Submission] -> IO Bool
- data Session = Session {}
- data NowPlaying = NowPlaying {}
- data Submission = Submission {}
- data Rating
- data Source
- data Response
- data Client = Client {}
- data Details = Details {
- detPassword :: String
- detUsername :: String
- detClient :: String
- detVersion :: String
- detServer :: URI
- data ScrobblerError
Documentation
Server configuration.
Constructors
Config | |
Fields
|
Event handlers.
Constructors
Handlers | |
Fields
|
A scrobbling session.
Constructors
Session | |
Fields
|
data Submission Source
A track submission.
Constructors
Submission | |
Fields
|
Instances
A rating of a track.
Note: Currently, a web-service must also be called to set love/ban status. We anticipate that this will be phased out soon, and the submission service will handle the whole process.
The source of the track. Required, must be one of the following codes:
Please note, for the time being, sources other than P and L are not supported.
Constructors
UserChosen | Chosen by the user |
NonPersonlizedBroadcast | Non-personalised broadcast (e.g. Shoutcast, BBC Radio 1) |
Personalized | Personalised recommendation except Last.fm (e.g. Pandora, Launchcast) |
LastFm | Last.fm (any mode). In this case, the 5-digit Last.fm recommendation key must be appended to this source ID to prove the validity of the submission (for example, "o[0]=L1b48a"). |
Unknown | Source unknown. |
Server response.
A scrobbling client.
Constructors
Client | |
Details for creating a scrobbling client.
Constructors
Details | |
Fields
|
data ScrobblerError Source
Scrobble exception.