mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-25 07:26:28 +00:00
dd77be8a8a
* 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
14 lines
354 B
C#
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; }
|
|
}
|
|
} |