Fully operational mopidy middleware; Spotify middleware next

This commit is contained in:
James Barnsley
2016-10-16 12:37:37 +13:00
parent ec7d6ae895
commit 9fddcc9948
20 changed files with 335 additions and 386 deletions

View File

@ -5,19 +5,35 @@
export function connect(){
return {
type: 'CONNECT'
type: 'MOPIDY_CONNECT'
}
}
export function disconnect(){
return {
type: 'DISCONNECT'
type: 'MOPIDY_DISCONNECT'
}
}
export function changeTrack( tlid ){
return {
type: 'MOPIDY_CHANGE_TRACK',
call: 'playback.play',
value: { tlid: tlid }
}
}
export function removeTracks( tlids ){
return {
type: 'MOPIDY_REMOVE_TRACKS',
call: 'tracklist.remove',
value: { tlid: tlids }
}
}
export function instruct( call, value ){
return {
type: 'INSTRUCT',
type: 'MOPIDY_INSTRUCT',
call: call,
value: value
}