Spotify.NET/SpotifyAPI/Local/SpotifyLocalAPIConfig.cs
Alessandro Attard Barbini dd77be8a8a Added support for proxy configuration (#224)
* Create ProxyConfig class + Unit tests

* Use ProxyConfig in SpotifyLocalAPI

* Refactor WebProxy creation in ProxyConfig

* Use ProxyConfig in SpotifyWebAPI

* Add ProxyConfig parameter in GetAlbumArt methods

* Add ProxyConfig to WebAPIFactory

* Add proxy settings to Example app

* Fix ArgumentNullException in GetAlbumArtUrl when not using proxy

* Performed requested changes

- Removed redundant "this".
- Added necessary null checks.
- Added a ProxyConfig property to SpotifyLocalAPIConfig and removed constructor overloads with it in SpotifyLocalAPI and RemoteHandler.

* Updated Example app
2018-03-25 19:39:19 +02:00

14 lines
354 B
C#

namespace SpotifyAPI.Local
{
// ReSharper disable once InconsistentNaming
public class SpotifyLocalAPIConfig
{
public int TimerInterval { get; set; } = 50;
public string HostUrl { get; set; } = "http://127.0.0.1";
public int Port { get; set; } = 4381;
public ProxyConfig ProxyConfig { get; set; }
}
}