C# Class Podcatcher.PodcastPlaybackManager

Show file Open project: kypeli/Podcatcher Class Usage Examples

Public Methods

Method Description
addSilentlyToPlayqueue ( PodcastEpisodeModel episode ) : void
addToPlayqueue ( Collection episodes ) : void
addToPlayqueue ( Collection episodes, bool showNotification = true ) : void
addToPlayqueue ( PodcastEpisodeModel episode, bool showNotification = true ) : void
clearPlayQueue ( ) : void
getInstance ( ) : PodcastPlaybackManager
isAudioPodcast ( PodcastEpisodeModel episode ) : bool
isCurrentlyPlaying ( ) : bool
play ( PlaylistItem playlistItem ) : void
play ( PodcastEpisodeModel episode, bool startedFromPlayQueue = false ) : void
playPlaylistItem ( int tappedPlaylistItemId ) : void
removeFromPlayqueue ( PodcastEpisodeModel episode ) : void
removeFromPlayqueue ( int itemId ) : void
sortPlaylist ( int sortOrder ) : void
startDefaultBehaviorPlayback ( ) : void
startPlaylistPlayback ( ) : void
stop ( ) : void
updateCurrentlyPlayingEpisode ( ) : PodcastEpisodeModel

Private Methods

Method Description
PlayStateChanged ( object sender, EventArgs e ) : void
PodcastPlaybackManager ( ) : System
addToPlayqueue ( PodcastEpisodeModel e, PlaylistDBContext dbContext ) : void
audioStreaming ( PodcastEpisodeModel podcastEpisode ) : void
episodes ( PodcastSqlModel sqlContext ) : IEnumerable
initializeCurrentlyPlayingEpisode ( ) : void
removeFromPlayqueue ( PlaylistItem plItem ) : void
showAddedNotification ( int count ) : void
videoStreaming ( PodcastEpisodeModel podcastEpisode ) : void
workerSortPlaylist ( object sender, DoWorkEventArgs args ) : void
workerSortPlaylistCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Method Details

addSilentlyToPlayqueue() public method

public addSilentlyToPlayqueue ( PodcastEpisodeModel episode ) : void
episode Podcatcher.ViewModels.PodcastEpisodeModel
return void

addToPlayqueue() public method

public addToPlayqueue ( Collection episodes ) : void
episodes Collection
return void

addToPlayqueue() public method

public addToPlayqueue ( Collection episodes, bool showNotification = true ) : void
episodes Collection
showNotification bool
return void

addToPlayqueue() public method

public addToPlayqueue ( PodcastEpisodeModel episode, bool showNotification = true ) : void
episode Podcatcher.ViewModels.PodcastEpisodeModel
showNotification bool
return void

clearPlayQueue() public method

public clearPlayQueue ( ) : void
return void

getInstance() public static method

public static getInstance ( ) : PodcastPlaybackManager
return PodcastPlaybackManager

isAudioPodcast() public static method

public static isAudioPodcast ( PodcastEpisodeModel episode ) : bool
episode Podcatcher.ViewModels.PodcastEpisodeModel
return bool

isCurrentlyPlaying() public method

public isCurrentlyPlaying ( ) : bool
return bool

play() public method

public play ( PlaylistItem playlistItem ) : void
playlistItem Podcatcher.ViewModels.PlaylistItem
return void

play() public method

public play ( PodcastEpisodeModel episode, bool startedFromPlayQueue = false ) : void
episode Podcatcher.ViewModels.PodcastEpisodeModel
startedFromPlayQueue bool
return void

playPlaylistItem() public method

public playPlaylistItem ( int tappedPlaylistItemId ) : void
tappedPlaylistItemId int
return void

removeFromPlayqueue() public method

public removeFromPlayqueue ( PodcastEpisodeModel episode ) : void
episode Podcatcher.ViewModels.PodcastEpisodeModel
return void

removeFromPlayqueue() public method

public removeFromPlayqueue ( int itemId ) : void
itemId int
return void

sortPlaylist() public method

public sortPlaylist ( int sortOrder ) : void
sortOrder int
return void

startDefaultBehaviorPlayback() public method

public startDefaultBehaviorPlayback ( ) : void
return void

startPlaylistPlayback() public method

public startPlaylistPlayback ( ) : void
return void

stop() public method

public stop ( ) : void
return void

updateCurrentlyPlayingEpisode() public method

public updateCurrentlyPlayingEpisode ( ) : PodcastEpisodeModel
return Podcatcher.ViewModels.PodcastEpisodeModel