Batch processor; Merging enqueue and enqueue next

This commit is contained in:
James Barnsley
2017-04-04 21:21:44 +12:00
parent bbd35234a9
commit 9d56a05fc4
3 changed files with 57 additions and 69 deletions

View File

@ -57,20 +57,12 @@ export function playURIs( uris, from_uri = null ){
}
}
export function enqueueURIsNext( uris, from_uri = null ){
if( typeof(uris) !== 'object' ) uris = [uris]
return {
type: 'MOPIDY_ENQUEUE_URIS_NEXT',
uris: uris,
from_uri: from_uri
}
}
export function enqueueURIs( uris, from_uri = null, at_position = false ){
export function enqueueURIs( uris, from_uri = null, next = false, at_position = null ){
return {
type: 'MOPIDY_ENQUEUE_URIS',
uris: uris,
at_position: at_position,
next: next,
from_uri: from_uri
}
}