From bd5d77528b1729a07da49b8812aa1a425c06c02a Mon Sep 17 00:00:00 2001 From: "Gus Perez (Home)" Date: Sun, 22 Feb 2015 11:54:08 -0800 Subject: [PATCH] Updated constructor to use a default parameter instead of going the overload route. --- SpotifyAPI/SpoitfyLocalAPI/SpotifyAPI.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/SpotifyAPI/SpoitfyLocalAPI/SpotifyAPI.cs b/SpotifyAPI/SpoitfyLocalAPI/SpotifyAPI.cs index 5f449290..36bfdabc 100644 --- a/SpotifyAPI/SpoitfyLocalAPI/SpotifyAPI.cs +++ b/SpotifyAPI/SpoitfyLocalAPI/SpotifyAPI.cs @@ -11,17 +11,13 @@ namespace SpotifyAPI.SpotifyLocalAPI SpotifyMusicHandler mh; RemoteHandler rh; SpotifyEventHandler eh; - static bool betaMode = false; + static bool betaMode; - public SpotifyLocalAPIClass() + public SpotifyLocalAPIClass(bool betaMode = false) { rh = RemoteHandler.GetInstance(); mh = new SpotifyMusicHandler(); eh = new SpotifyEventHandler(this, mh); - } - - public SpotifyLocalAPIClass(bool betaMode) : this() - { SpotifyLocalAPIClass.betaMode = betaMode; }