C# Class XboxMusicLibrary.MusicHelper

Mostrar archivo Open project: kusl/vlcwinrt

Public Methods

Method Description
GetAccessToken ( string clientId, string clientSecret, string refreshToken ) : Task

Get a developer authentication Access Token obtained from Azure Data Market. Used to identify the third-party application using the Xbox Music RESTful API.

LoadNext ( string token, string continuationToken, string namespaceids = null ) : Task

Request the continuation of an incomplete list of content.

LookupMediaCatalog ( string token, string namespaceids, Extras extras = null, Culture culture = null ) : Task

Access a small number of items from a media catalog.

SearchMediaCatalog ( string token, string query, Extras extras = null, uint maxitems = 25, Filters filters = null, Culture culture = null ) : Task

Search for a potentially large number of items from a media catalog.

Protected Methods

Method Description
OnFailed ( ErrorEventArgs e ) : void

Method Details

GetAccessToken() public method

Get a developer authentication Access Token obtained from Azure Data Market. Used to identify the third-party application using the Xbox Music RESTful API.
public GetAccessToken ( string clientId, string clientSecret, string refreshToken ) : Task
clientId string
clientSecret string
refreshToken string
return Task

LoadNext() public method

Request the continuation of an incomplete list of content.
public LoadNext ( string token, string continuationToken, string namespaceids = null ) : Task
token string Required. A valid developer authentication Access Token obtained from Azure Data Market, used to identify the third-party application using the Xbox Music RESTful API.
continuationToken string Required. A Continuation Token provided in an earlier service response and optionally passed back to the service to request the continuation of an incomplete list of content.
namespaceids string Optional. The ID or IDs to be looked up. Each ID is prefixed by a namespace and ".". You can specify from 1 to 10 IDs in your request.
return Task

LookupMediaCatalog() public method

Access a small number of items from a media catalog.
public LookupMediaCatalog ( string token, string namespaceids, Extras extras = null, Culture culture = null ) : Task
token string Required. A valid developer authentication Access Token obtained from Azure Data Market, used to identify the third-party application using the Xbox Music RESTful API.
namespaceids string Required. The ID or IDs to be looked up. Each ID is prefixed by a namespace and ".". You can specify from 1 to 10 IDs in your request.
extras Extras Optional. List of extra fields that can be optionally requested (at the cost of performance).
culture XboxMusicLibrary.Settings.Culture Optional. The standard two-letter code that identifies the country/region of the user. If not specified, the value defaults to the geolocated country/region of the client's IP address. Responses will be filtered to provide only those that match the user's country/region.
return Task

OnFailed() protected method

protected OnFailed ( ErrorEventArgs e ) : void
e XboxMusicLibrary.Models.ErrorEventArgs
return void

SearchMediaCatalog() public method

Search for a potentially large number of items from a media catalog.
public SearchMediaCatalog ( string token, string query, Extras extras = null, uint maxitems = 25, Filters filters = null, Culture culture = null ) : Task
token string Required. A valid developer authentication Access Token obtained from Azure Data Market, used to identify the third-party application using the Xbox Music RESTful API.
query string Required. The search query.
extras Extras Optional. The extras query
maxitems uint Optional. Positive integer from 1 to 25, inclusive. The maximum number of results that should be returned in the response. If this parameter is not set, the response will be limited to a maximum of 25 results. There is no guarantee that all search results will be returned in a single response; the response may contain a truncated list of responses and a continuation token.
filters Filters A subcategory of item types, in case the client is interested in only one or more specific types of items. If this parameter is not provided, the search will be performed in all categories.
culture XboxMusicLibrary.Settings.Culture Optional. The standard two-letter code that identifies the country/region of the user. If not specified, the value defaults to the geolocated country/region of the client's IP address. Responses will be filtered to provide only those that match the user's country/region.
return Task