public class StartMusicRequest extends Event
Modifier | Constructor and Description |
---|---|
protected |
StartMusicRequest(Identification source,
boolean isUsingJava)
Creates a new Event Object
|
Modifier and Type | Method and Description |
---|---|
static Optional<StartMusicRequest> |
createStartMusicRequest(Identification source,
Identification target)
creates a new StartRequest
|
static Optional<StartMusicRequest> |
createStartMusicRequest(Identification source,
Identification target,
Playlist playlist)
creates a new StartRequest
|
static Optional<StartMusicRequest> |
createStartMusicRequest(Identification source,
Identification target,
Playlist playlist,
boolean isUsingJava)
creates a new StartRequest
|
static Optional<StartMusicRequest> |
createStartMusicRequest(Identification source,
Identification target,
TrackInfo trackInfo)
creates a new StartRequest
|
static Optional<StartMusicRequest> |
createStartMusicRequest(Identification source,
Identification target,
TrackInfo trackInfo,
boolean isUsingJava)
creates a new StartRequest
|
static boolean |
verify(EventModel eventModel,
Capabilities capabilities,
Identifiable player,
List<Identifiable> activators)
verifies that the StartMusicRequest is correct and checks whether the you are meant to react to it
|
addDescriptor, addEventLifeCycleListener, addResource, addResources, containsDescriptor, createEvent, createEvent, getAllInformations, getDescriptors, getEventBehaviourController, getID, getListResourceContainer, getSource, getType, lifecycleCallback, replaceDescriptors, setDescriptors, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
isOwner
public static final String ID
protected StartMusicRequest(Identification source, boolean isUsingJava) throws IllegalArgumentException
source
- the source of the Event, most likely a this reference.isUsingJava
- true if the player is using javaIllegalArgumentException
- if one of the Arguments is null or emptypublic static Optional<StartMusicRequest> createStartMusicRequest(Identification source, Identification target)
source
- the callertarget
- the target who should start playingpublic static Optional<StartMusicRequest> createStartMusicRequest(Identification source, Identification target, TrackInfo trackInfo)
source
- the callertarget
- the target who should start playingtrackInfo
- the track to playpublic static Optional<StartMusicRequest> createStartMusicRequest(Identification source, Identification target, TrackInfo trackInfo, boolean isUsingJava)
source
- the callertarget
- the target who should start playingtrackInfo
- the track to playisUsingJava
- true if the player is using javapublic static Optional<StartMusicRequest> createStartMusicRequest(Identification source, Identification target, Playlist playlist)
source
- the callertarget
- the target who should start playingplaylist
- the playlist to playpublic static Optional<StartMusicRequest> createStartMusicRequest(Identification source, Identification target, Playlist playlist, boolean isUsingJava)
source
- the callertarget
- the target who should start playingplaylist
- the playlist to playisUsingJava
- true if the player is using javapublic static boolean verify(EventModel eventModel, Capabilities capabilities, Identifiable player, List<Identifiable> activators)
eventModel
- the EventModel to check againstplayer
- the identifiablecapabilities
- the capabilitiesactivators
- the activators which are able to start the player if it is not able to start from outside commandsCopyright © 2016. All rights reserved.