C# Class Last.fm_Scrubbler_WPF.ViewModels.DatabaseScrobbleViewModel

ViewModel for the DatabaseScrobbleView.
Inheritance: ScrobbleViewModelBase
Mostrar archivo Open project: coczero/Last.fm-Scrubbler-WPF Class Usage Examples

Public Methods

Method Description
ArtistClicked ( object sender, EventArgs e ) : void

Fetches the release list of the clicked artist and displays it.

BackToArtist ( ) : void

Switches the CurrentView to the _artistResultView.

BackToReleases ( ) : void

Switches the CurrentView to the _releaseResultView.

DatabaseScrobbleViewModel ( ) : IF.Lastfm.Core.Api.Helpers

Constructor.

Preview ( ) : void
ReleaseClicked ( object sender, EventArgs e ) : void

Fetches the tracklist of the clicked release and displays it.

Scrobble ( ) : System.Threading.Tasks.Task

Scrobbles the selected tracks.

Scrobbles will be 'reversed' meaning track 1 of the release will be scrobbled last. The first track to be scrobbled will have the FinishingTime as timestamp. The last track (track 1) will have the FinishingTime minus all the durations of the scrobbles before. 3 minute default duration.

Search ( ) : System.Threading.Tasks.Task

Sarches the entered SearchText. And displays the info.

SelectAllTracks ( ) : void

Marks all tracks as "ToScrobble".

SelectNoneTracks ( ) : void

Marks all tracks as not "ToScrobble";

Private Methods

Method Description
CreateScrobbles ( ) : List
ToScrobbleChanged ( object sender, EventArgs e ) : void

Notifies CanScrobble that one or more ToScrobbles have been changed.

Method Details

ArtistClicked() public method

Fetches the release list of the clicked artist and displays it.
public ArtistClicked ( object sender, EventArgs e ) : void
sender object Clicked artist as .
e System.EventArgs Ignored.
return void

BackToArtist() public method

Switches the CurrentView to the _artistResultView.
public BackToArtist ( ) : void
return void

BackToReleases() public method

Switches the CurrentView to the _releaseResultView.
public BackToReleases ( ) : void
return void

DatabaseScrobbleViewModel() public method

Constructor.
public DatabaseScrobbleViewModel ( ) : IF.Lastfm.Core.Api.Helpers
return IF.Lastfm.Core.Api.Helpers

Preview() public method

public Preview ( ) : void
return void

ReleaseClicked() public method

Fetches the tracklist of the clicked release and displays it.
public ReleaseClicked ( object sender, EventArgs e ) : void
sender object Clicked release as .
e System.EventArgs Ignored.
return void

Scrobble() public method

Scrobbles the selected tracks.
Scrobbles will be 'reversed' meaning track 1 of the release will be scrobbled last. The first track to be scrobbled will have the FinishingTime as timestamp. The last track (track 1) will have the FinishingTime minus all the durations of the scrobbles before. 3 minute default duration.
public Scrobble ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Search() public method

Sarches the entered SearchText. And displays the info.
public Search ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SelectAllTracks() public method

Marks all tracks as "ToScrobble".
public SelectAllTracks ( ) : void
return void

SelectNoneTracks() public method

Marks all tracks as not "ToScrobble";
public SelectNoneTracks ( ) : void
return void