C# Class Slyngelstat.Spotify.WebApi.WebApiClient

Inheritance: IWebApiClient
Mostra file Open project: christiansparre/Slyngelstat.Spotify.Api Class Usage Examples

Public Methods

Method Description
BuildSearchUri ( string baseUrl, string term, int page ) : Uri

Builds a search uri

GetRawResult ( Uri uri ) : Newtonsoft.Json.Linq.JObject
LookupAlbum ( SpotifyUri uri ) : Album

Looks up an album

LookupAlbum ( string uri ) : Album

Looks up an album

LookupArtist ( SpotifyUri uri ) : Artist

Looks up an artist

LookupArtist ( string uri ) : Artist

Looks up an artist

LookupTrack ( SpotifyUri uri ) : Track

Looks up a track

LookupTrack ( string uri ) : Track

Looks up a track

SearchAlbums ( string term, int page = 1 ) : AlbumSearchResult

Search for an album

SearchArtists ( string term, int page = 1 ) : ArtistSearchResult

Search for an artist

SearchTracks ( string term, int page = 1 ) : TrackSearchResult

Search for a track

WebApiClient ( ) : System

Private Methods

Method Description
BuildLookupUri ( string baseUrl, SpotifyUri uri, string extras = null ) : Uri
GetJObject ( SpotifyUri uri, string extras = null ) : Newtonsoft.Json.Linq.JObject
GetWebApiResponse ( Uri requestUri ) : string

Method Details

BuildSearchUri() public method

Builds a search uri
public BuildSearchUri ( string baseUrl, string term, int page ) : Uri
baseUrl string
term string
page int
return System.Uri

GetRawResult() public method

public GetRawResult ( Uri uri ) : Newtonsoft.Json.Linq.JObject
uri System.Uri
return Newtonsoft.Json.Linq.JObject

LookupAlbum() public method

Looks up an album
public LookupAlbum ( SpotifyUri uri ) : Album
uri SpotifyUri
return Album

LookupAlbum() public method

Looks up an album
public LookupAlbum ( string uri ) : Album
uri string
return Album

LookupArtist() public method

Looks up an artist
public LookupArtist ( SpotifyUri uri ) : Artist
uri SpotifyUri
return Artist

LookupArtist() public method

Looks up an artist
public LookupArtist ( string uri ) : Artist
uri string
return Artist

LookupTrack() public method

Looks up a track
public LookupTrack ( SpotifyUri uri ) : Track
uri SpotifyUri
return Track

LookupTrack() public method

Looks up a track
public LookupTrack ( string uri ) : Track
uri string
return Track

SearchAlbums() public method

Search for an album
public SearchAlbums ( string term, int page = 1 ) : AlbumSearchResult
term string
page int
return AlbumSearchResult

SearchArtists() public method

Search for an artist
public SearchArtists ( string term, int page = 1 ) : ArtistSearchResult
term string
page int
return ArtistSearchResult

SearchTracks() public method

Search for a track
public SearchTracks ( string term, int page = 1 ) : TrackSearchResult
term string
page int
return TrackSearchResult

WebApiClient() public method

public WebApiClient ( ) : System
return System