Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Mountpoint
- = MainDJ
- | MainDJMobile
- | MainDJOpus
- | DayDJ
- | NightDJ
- data Response a
- = Successful { }
- | Errorful !Text
- data StreamInfo = StreamInfo {
- siListener :: !Int
- siStatus :: !Text
- siCurrentEvent :: !Text
- siTrackInfo :: !TrackInfo
- data TrackInfo = TrackInfo {}
- data Track = Track {}
- class HasTrackId t where
- class HasTrackId t => HasTrack t where
- class HasTrack t => HasTrackInfo t where
- data HistoryItem = HistoryItem {
- hiTrack :: !Track
- hiPlayedAt :: !UTCTime
- data VoteCheckResult = VoteCheckResult {
- vcVoted :: Bool
- vcDirection :: Text
- data VoteResult = VoteResult {}
Documentation
data Mountpoint Source #
BRG provides three radio channels: the main channel, DayDJ and NightDJ. All channels are broadcasted in MPEG 4, 128kbps. For the main channel there is also an Opus stream with 96kbps and a mobile MPEG 4 stream with 64kbps.
A response may have succeeded or failed, and it may be chunked into several pages.
Successful | |
| |
Errorful !Text |
data StreamInfo Source #
Information on a specific Mountpoint
StreamInfo | |
|
Wider information on a specific track.
Core information on a specific track.
class HasTrackId t where Source #
Everything that contains a track id.
class HasTrackId t => HasTrack t where Source #
Everything that contains core information about a track
class HasTrack t => HasTrackInfo t where Source #
Everything that contains wider information about a track
data HistoryItem Source #
An item in the history stream. Contains a track and a timestamp (converted to UTC)
HistoryItem | |
|
data VoteCheckResult Source #
The vote status. Have you already voted for this song? Up or down?