bronyradiogermany-common-1.0.0.1: Common types and URIs for the BronyRadioGermany API bindings.

Safe HaskellNone
LanguageHaskell2010

Network.Radio.BronyRadioGermany.Types

Synopsis

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.

data Response a Source #

A response may have succeeded or failed, and it may be chunked into several pages.

data Track Source #

Core information on a specific track.

Constructors

Track 

Fields

class HasTrackId t where Source #

Everything that contains a track id.

Minimal complete definition

trackId, setTrackId

Methods

trackId Source #

Arguments

:: t 
-> Int

Get the track id

setTrackId Source #

Arguments

:: Int 
-> t 
-> t

Change the track id

class HasTrack t => HasTrackInfo t where Source #

Everything that contains wider information about a track

Minimal complete definition

upVotes, setUpVotes, downVotes, setDownVotes

Methods

upVotes Source #

Arguments

:: t 
-> Int

Get the track's upvotes

setUpVotes Source #

Arguments

:: Int 
-> t 
-> t

Change the track's upvotes

downVotes Source #

Arguments

:: t 
-> Int

Get the track's downvotes

setDownVotes Source #

Arguments

:: Int 
-> t 
-> t

Change the track's downvotes

voteDifference :: t -> Int Source #