C# Class Tunez.Scrobbler

Inheritance: IScrobbler
Mostra file Open project: alanmcgovern/tunez Class Usage Examples

Private Properties

Property Type Description
CreateAuthQueryParams QueryParameters
CreateAuthenticationUri System.Uri
CreateScrobbleQueryParams string
HandleAuthResponse bool
HandleScrobbleResponse bool
PostAsync Task
ReadScrobblesFromCache IEnumerable
SaveToCache void
Scrobble Task
ScrobbleFromCache Task

Public Methods

Method Description
Login ( ) : Task
Scrobble ( Track track ) : Task
Scrobbler ( string cacheDirectory ) : System

Private Methods

Method Description
CreateAuthQueryParams ( ) : QueryParameters
CreateAuthenticationUri ( ) : Uri
CreateScrobbleQueryParams ( IEnumerable batch ) : string
HandleAuthResponse ( Newtonsoft.Json.Linq.JObject json ) : bool
HandleScrobbleResponse ( Newtonsoft.Json.Linq.JObject json ) : bool
PostAsync ( Uri uri, HttpContent content = null ) : Task
ReadScrobblesFromCache ( ) : IEnumerable
SaveToCache ( Track track ) : void
Scrobble ( IEnumerable tracks ) : Task
ScrobbleFromCache ( ) : Task

Method Details

Login() public method

public Login ( ) : Task
return Task

Scrobble() public method

public Scrobble ( Track track ) : Task
track Track
return Task

Scrobbler() public method

public Scrobbler ( string cacheDirectory ) : System
cacheDirectory string
return System