Commit Graph

13 Commits

Author SHA1 Message Date
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
Jonas Dellinger
3eefa5a2dc Fixed Header add 2017-05-31 19:54:13 +02:00
Jonas Dellinger
1c6f317dda Added Status Code to models 2017-05-31 18:17:07 +02:00
Jonas Dellinger
1253d02da7 Switched from WebClient to HTTPClient 2017-05-31 17:31:41 +02:00
Petr Houška
80f58df929 Fixed rest of awaits. 2016-09-08 12:06:24 +02:00
Nick Muller
c3a63d71e4 Added empty json container if server response is empty.
This fixes a possible NullReferenceException, which at least occurred in every call to SaveAlbums().
2016-07-23 23:35:23 +02:00
Johnny @PC
15d8fd87e2 Merged headers branch 2016-07-07 21:28:02 +02:00
Johnny @PC
a4c76ec6e3 Fixed usage of wrong WebClient instance 2016-05-24 18:17:24 +02:00
Johnny @PC
adeac7b409 Simplified String -> string 2016-03-31 12:08:23 +02:00
Johnny @PC
f320dae4ce Implemented own client for async-requests (Should close #55) 2015-11-15 20:54:30 +01:00
Johnny @PC
0dd94eaf41 Implemented Async-Structure. 2015-11-05 21:20:22 +01:00
mrnikbobjeff
49441bba95 Formatted and beautified code via codemaid
Organised using statements alphabetically
2015-10-17 00:44:35 +02:00
Johnny Dellinger @PC
45c71544f9 Full Rewrite & Cleanup (New documentation follows) 2015-07-07 18:11:11 +02:00