C# Class Last.fm_Scrubbler_WPF.ViewModels.MediaPlayerDatabaseScrobbleViewModel

ViewModel for the Views.MediaPlayerDatabaseScrobbleView.
Inheritance: ScrobbleViewModelBase
Mostra file Open project: coczero/Last.fm-Scrubbler-WPF Class Usage Examples

Public Methods

Method Description
MediaPlayerDatabaseScrobbleViewModel ( ) : IF.Lastfm.Core.Objects

Constructor.

ParseFile ( ) : void

Parses the DBFilePath.

Preview ( ) : void

Previews the tracks that will be scrobbled.

Scrobble ( ) : System.Threading.Tasks.Task

Scrobbles the selected tracks.

SelectAll ( ) : void

Marks all scrobbles as "ToScrobble".

SelectFile ( ) : void

Shows an OpenFileDialog and lets the user select a database file. Filter will be applied depending on selected MediaPlayerDatabaseType.

SelectNone ( ) : void

Marks all scrobbles as not "ToScrobble".

Private Methods

Method Description
CreateScrobbles ( ) : List
ParseItunesConformXML ( ) : void

Parse the DBFilePath. A lot of media players use the same xml format.

ParseWMPDatabase ( ) : void

Parses the windows media player database.

ToScrobbleChanged ( object sender, EventArgs e ) : void

Notifies the UI that ToScrobble has changed.

Method Details

MediaPlayerDatabaseScrobbleViewModel() public method

Constructor.
public MediaPlayerDatabaseScrobbleViewModel ( ) : IF.Lastfm.Core.Objects
return IF.Lastfm.Core.Objects

ParseFile() public method

Parses the DBFilePath.
public ParseFile ( ) : void
return void

Preview() public method

Previews the tracks that will be scrobbled.
public Preview ( ) : void
return void

Scrobble() public method

Scrobbles the selected tracks.
public Scrobble ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SelectAll() public method

Marks all scrobbles as "ToScrobble".
public SelectAll ( ) : void
return void

SelectFile() public method

Shows an OpenFileDialog and lets the user select a database file. Filter will be applied depending on selected MediaPlayerDatabaseType.
public SelectFile ( ) : void
return void

SelectNone() public method

Marks all scrobbles as not "ToScrobble".
public SelectNone ( ) : void
return void