C# Класс Last.fm_Scrubbler_WPF.ViewModels.DatabaseScrobbleViewModel

ViewModel for the DatabaseScrobbleView.
Наследование: ScrobbleViewModelBase
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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";

Приватные методы

Метод Описание
CreateScrobbles ( ) : List
ToScrobbleChanged ( object sender, EventArgs e ) : void

Notifies CanScrobble that one or more ToScrobbles have been changed.

Описание методов

ArtistClicked() публичный Метод

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.
Результат void

BackToArtist() публичный Метод

Switches the CurrentView to the _artistResultView.
public BackToArtist ( ) : void
Результат void

BackToReleases() публичный Метод

Switches the CurrentView to the _releaseResultView.
public BackToReleases ( ) : void
Результат void

DatabaseScrobbleViewModel() публичный Метод

Constructor.
public DatabaseScrobbleViewModel ( ) : IF.Lastfm.Core.Api.Helpers
Результат IF.Lastfm.Core.Api.Helpers

Preview() публичный Метод

public Preview ( ) : void
Результат void

ReleaseClicked() публичный Метод

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.
Результат void

Scrobble() публичный Метод

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
Результат System.Threading.Tasks.Task

Search() публичный Метод

Sarches the entered SearchText. And displays the info.
public Search ( ) : System.Threading.Tasks.Task
Результат System.Threading.Tasks.Task

SelectAllTracks() публичный Метод

Marks all tracks as "ToScrobble".
public SelectAllTracks ( ) : void
Результат void

SelectNoneTracks() публичный Метод

Marks all tracks as not "ToScrobble";
public SelectNoneTracks ( ) : void
Результат void