More logical naming conventions for seeking, 5s polling for updates

This commit is contained in:
James Barnsley
2018-03-02 08:49:34 +13:00
parent 816eb54ed7
commit c204556dbd
4 changed files with 85 additions and 77 deletions

View File

@ -141,23 +141,23 @@ export function setRandom(random){
}
}
export function seek(time_position){
return {
type: 'MOPIDY_SEEK',
time_position: parseInt(time_position)
}
}
export function getTimePosition(){
return {
type: 'MOPIDY_GET_TIME_POSITION'
}
}
export function setTimePosition(time_position){
return {
type: 'MOPIDY_SET_TIME_POSITION',
time_position: parseInt(time_position)
}
}
export function timePosition(time_position){
return {
type: 'MOPIDY_TIME_POSITION',
time_position: time_position
time_position: parseInt(time_position)
}
}