Commit Graph

26 Commits

Author SHA1 Message Date
Jonas Dellinger
6646f8d4a8 Fixed track change event not firing correctly 2018-05-06 14:49:44 +02:00
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
Alessandro Attard Barbini
5ccef6fd14 Raise OnTrackChange event for "other" tracks as well (#204)
* Raise OnTrackChange event for "other" tracks as well

* Add null checks in Example project
2018-01-10 14:56:58 +01:00
Ferdin Handoko
26b5f8054d add api to check if spotify is installed (#193) 2017-11-09 15:37:10 +01:00
Jonas Dellinger
451d925d7d Added config for spotify local api 2017-09-03 14:44:11 +02:00
shadowlif
a932aaadc8 Added method to check for compatible OS (#147)
* Added method to check for compatible OS

* Standardized const variables

* Fixed typo

* Negation of usage in if's

* Moved const variables

* simplified IsOSCompatible
2017-06-04 00:15:56 +02:00
Jonas Dellinger
ec8b7a3d3d Made some LocalAPI methods async - Updated example, now without SynchronizingObject 2016-09-09 14:56:37 +02:00
Jonas Dellinger
ce376a3513 Fixed wrong comparing of track objects 2016-08-28 22:35:47 +02:00
Jürgen
4699246068 Adapted code style 2016-07-30 00:19:57 +02:00
Jürgen Holzer
08137421ea Timer should be disabled and events detached if no longer needed.
So IDisposable is introduced which handles the above...
2016-07-22 21:38:58 +02:00
Johnny @PC
adeac7b409 Simplified String -> string 2016-03-31 12:08:23 +02:00
Jimmy Appelt
017161cb54 delegates/events to newer usage 2016-01-07 09:23:58 +01:00
Johnny Dellinger @PC
96bcb7bd36 Some more refactoring. 2015-10-28 17:05:09 +01:00
mrnikbobjeff
3544c34176 Changed Contracts to if-throw-else as requested
Changed use of nullable return types to throw exceptions instead of returning null
2015-10-23 21:25:13 +02:00
mrnikbobjeff
e5e57c3020 Removed infinite loop in dispose call
Imporved spelling in new commits
2015-10-21 13:18:57 +02:00
mrnikbobjeff
4f83ac068f Updated documentation for new functions 2015-10-17 11:58:38 +02:00
mrnikbobjeff
53ff432425 Removed nircmd.exe
Changed Mute and UnMute function to work with both x86 and x64 processes on Windows 7 or newer
Added functions to manipulate the Volume Control of Spotify
2015-10-17 11:55:27 +02:00
mrnikbobjeff
49441bba95 Formatted and beautified code via codemaid
Organised using statements alphabetically
2015-10-17 00:44:35 +02:00
mrnikbobjeff
10c8944e05 Replaced all occurances of checking whether a string is empty via str == "" with String.IsNullOrEmpty(str)
sealed StringAttribute because it is only contains text as attribute
sealed SpotifyWebAPI class as it implements IDisposable
Changed Exception catching where the Exception is not used to ignore the Exception object
Removed Console.WriteLine("Exception: " + e.Message) int HttpProcessor.Process as it is a library function which might not be used in a console application
2015-10-17 00:31:01 +02:00
mrnikbobjeff
861f4e5969 Added support for different locations of SpotifyWebHelper.exe 2015-10-16 13:54:39 +02:00
Johnny Dellinger @PC
5c3c354c26 Added docs to the Local-API 2015-10-15 14:58:23 +02:00
Johnny Dellinger @PC
d1f1923738 Fixed crash on adverts, Closes #34 2015-10-01 17:28:40 +02:00
Wampe
d92c09740c Reverted to Path.Combine and removed the wrong backslash (comment by JohnnyCrazy at github) 2015-08-02 23:02:37 +02:00
Wampe
6ec8926a4f Fixed process start for application and webhelper 2015-08-02 21:48:31 +02:00
Johnny Dellinger @PC
38e6f55518 Marked AddToQueue as obsolete (info at #24) 2015-07-15 17:41:44 +02:00
Johnny Dellinger @PC
45c71544f9 Full Rewrite & Cleanup (New documentation follows) 2015-07-07 18:11:11 +02:00