C# 클래스 Last.fm_Scrubbler_WPF.ViewModels.ITunesScrobbleViewModel

ViewModel for the Views.ITunesScrobbleView.
상속: ScrobbleViewModelBase, IDisposable
파일 보기 프로젝트 열기: coczero/Last.fm-Scrubbler-WPF 1 사용 예제들

공개 메소드들

메소드 설명
ConnectToITunes ( ) : void

Connects/reconnects to iTunes.

DisconnectFromITunes ( ) : void

Disposes the current connection to the iTunes com.

Dispose ( ) : void

Cleans up.

ITunesScrobbleViewModel ( ) : IF.Lastfm.Core.Objects

Constructor.

Preview ( ) : void

Does nothing here.

Scrobble ( ) : System.Threading.Tasks.Task

Scrobbles the current song.

비공개 메소드들

메소드 설명
FetchAlbumArtwork ( ) : System.Threading.Tasks.Task

Gets the album artwork of the current track.

GetCurrentTrackInfo ( ) : void

Gets the info of the currently playing track.

_app_AboutToQuitEvent ( ) : void

Disconnect when iTunes is about to close.

_app_OnPlayerPlayEvent ( object iTrack ) : void

Starts the _countTimer

_app_OnPlayerStopEvent ( object iTrack ) : void

Stops the _countTimer

_countTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Counts up and scrobbles if the track has been played longer than 50%.

_refreshTimer_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void

Checks if the current playing song is still the same. If not, prepare for new track.

메소드 상세

ConnectToITunes() 공개 메소드

Connects/reconnects to iTunes.
public ConnectToITunes ( ) : void
리턴 void

DisconnectFromITunes() 공개 메소드

Disposes the current connection to the iTunes com.
public DisconnectFromITunes ( ) : void
리턴 void

Dispose() 공개 메소드

Cleans up.
public Dispose ( ) : void
리턴 void

ITunesScrobbleViewModel() 공개 메소드

Constructor.
public ITunesScrobbleViewModel ( ) : IF.Lastfm.Core.Objects
리턴 IF.Lastfm.Core.Objects

Preview() 공개 메소드

Does nothing here.
public Preview ( ) : void
리턴 void

Scrobble() 공개 메소드

Scrobbles the current song.
public Scrobble ( ) : System.Threading.Tasks.Task
리턴 System.Threading.Tasks.Task