protected void fireStartMusicRequest ( EventModel eventModel ) { Optional < Playlist > playlist = PlaylistResource . getPlaylist ( eventModel ) ; Optional < Progress > progress = ProgressResource . getProgress ( eventModel ) ; Optional < TrackInfo > trackInfo = TrackInfoResource . getTrackInfo ( eventModel ) ; Optional < Volume > volume = VolumeResource . getVolume ( eventModel ) ; startedSound ( playlist . orElse ( null ) , progress . orElse ( null ) , trackInfo . orElse ( null ) , volume . orElse ( null ) , isUsingJava ) ; }
this method will be called to create and fire the StartMusicRequest