2016-08-10 21:36:11 +02:00
|
|
|
/**
|
|
|
|
* This file defines authentication related models.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// NPM imports
|
2016-08-07 00:58:36 +02:00
|
|
|
import Immutable from "immutable";
|
|
|
|
|
|
|
|
|
2016-08-10 21:36:11 +02:00
|
|
|
/** Record to store the webplayer state. */
|
2016-08-07 00:58:36 +02:00
|
|
|
export const stateRecord = new Immutable.Record({
|
2016-08-10 21:36:11 +02:00
|
|
|
isPlaying: false, /** Whether webplayer is playing */
|
|
|
|
isRandom: false, /** Whether random mode is on */
|
|
|
|
isRepeat: false, /** Whether repeat mode is on */
|
|
|
|
isMute: false, /** Whether sound is muted or not */
|
|
|
|
volume: 100, /** Current volume, between 0 and 100 */
|
|
|
|
currentIndex: 0, /** Current index in the playlist */
|
2016-08-10 23:50:23 +02:00
|
|
|
playlist: new Immutable.List(), /** List of songs IDs, references songs in the entities store */
|
2016-08-07 00:58:36 +02:00
|
|
|
});
|