C# Class OpenSyno.ViewModels.PlayQueueViewModel

Inheritance: ViewModelBase
Show file Open project: salfab/open-syno

Public Methods

Method Description
PlayQueueViewModel ( IEventAggregator eventAggregator, IPlaybackService playbackService, INotificationService notificationService, IOpenSynoSettings openSynoSettings, ILogService logService, ITrackViewModelFactory trackViewModelFactory, IPageSwitchingService pageSwitchingService ) : System

Initializes a new instance of the PlayQueueViewModel class.

WakeUpFromTombstone ( ) : void

Private Methods

Method Description
AppendItems ( IEnumerable items, Guid>.Action callback ) : void
ClearItems ( ) : void
OnPausePlayback ( ) : void
OnPlay ( System.Guid guidOfTrackToPlay ) : void
OnPlay ( TrackViewModel trackViewModel ) : void
OnPlayListOperation ( PlayListOperationAggregatedEvent e ) : void

Called when a play list operation is requested.

OnPlayNext ( ) : void

Called when the Play next command is triggered.

OnPlayPrevious ( ) : void
OnPlayqueueChanged ( object sender, PlayqueueChangedEventArgs e ) : void
OnRemoveTracksFromQueue ( IEnumerable tracks ) : void
OnResumePlayback ( ) : void
OnSavePlaylist ( IEnumerable tracks ) : void
OnSelectAllAlbumTracks ( System.Guid consecutiveAlbumId ) : void

Method Details

PlayQueueViewModel() public method

Initializes a new instance of the PlayQueueViewModel class.
public PlayQueueViewModel ( IEventAggregator eventAggregator, IPlaybackService playbackService, INotificationService notificationService, IOpenSynoSettings openSynoSettings, ILogService logService, ITrackViewModelFactory trackViewModelFactory, IPageSwitchingService pageSwitchingService ) : System
eventAggregator IEventAggregator The event aggregator.
playbackService IPlaybackService The playback service.
notificationService INotificationService
openSynoSettings IOpenSynoSettings
logService ILogService
trackViewModelFactory ITrackViewModelFactory
pageSwitchingService IPageSwitchingService
return System

WakeUpFromTombstone() public method

public WakeUpFromTombstone ( ) : void
return void