Exemple #1
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="MusicClient" /> class,
 ///   using the RegionInfo settings to locate the user.
 /// </summary>
 /// <param name="clientId">The Application Client ID obtained during registration</param>
 public MusicClient(string clientId)
     : this(
         clientId,
         RegionInfo.CurrentRegion.TwoLetterISORegionName.ToLower(),
         null,
         ApiRequestHandlerFactory.Create())
 {
     this.CountryCodeBasedOnRegionInfo = true;
 }
Exemple #2
0
 /// <summary>
 ///   Initializes a new instance of the <see cref="MusicClient" /> class.
 /// </summary>
 /// <param name="clientId">The Application Client ID obtained during registration</param>
 /// <param name="countryCode"> The country code. </param>
 /// <param name="language"> The language code. </param>
 public MusicClient(string clientId, string countryCode, string language)
     : this(clientId, countryCode, language, ApiRequestHandlerFactory.Create())
 {
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CountryResolver" /> class.
 /// </summary>
 /// <param name="clientId">The Application Client ID obtained during registration</param>
 public CountryResolver(string clientId)
     : this(clientId, ApiRequestHandlerFactory.Create())
 {
 }