C# Class Last.fm_Scrubbler_WPF.ViewModels.DatabaseScrobbleViewModel

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

Méthodes publiques

Méthode 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

Méthode Description
CreateScrobbles ( ) : List
ToScrobbleChanged ( object sender, EventArgs e ) : void

Notifies CanScrobble that one or more ToScrobbles have been changed.

Method Details

ArtistClicked() public méthode

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.
Résultat void

BackToArtist() public méthode

Switches the CurrentView to the _artistResultView.
public BackToArtist ( ) : void
Résultat void

BackToReleases() public méthode

Switches the CurrentView to the _releaseResultView.
public BackToReleases ( ) : void
Résultat void

DatabaseScrobbleViewModel() public méthode

Constructor.
public DatabaseScrobbleViewModel ( ) : IF.Lastfm.Core.Api.Helpers
Résultat IF.Lastfm.Core.Api.Helpers

Preview() public méthode

public Preview ( ) : void
Résultat void

ReleaseClicked() public méthode

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.
Résultat void

Scrobble() public méthode

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
Résultat System.Threading.Tasks.Task

Search() public méthode

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

SelectAllTracks() public méthode

Marks all tracks as "ToScrobble".
public SelectAllTracks ( ) : void
Résultat void

SelectNoneTracks() public méthode

Marks all tracks as not "ToScrobble";
public SelectNoneTracks ( ) : void
Résultat void