Updated constructor to use a default parameter instead of going the overload route.

This commit is contained in:
Gus Perez (Home) 2015-02-22 11:54:08 -08:00
parent 510c33489d
commit bd5d77528b

View File

@ -11,17 +11,13 @@ namespace SpotifyAPI.SpotifyLocalAPI
SpotifyMusicHandler mh; SpotifyMusicHandler mh;
RemoteHandler rh; RemoteHandler rh;
SpotifyEventHandler eh; SpotifyEventHandler eh;
static bool betaMode = false; static bool betaMode;
public SpotifyLocalAPIClass() public SpotifyLocalAPIClass(bool betaMode = false)
{ {
rh = RemoteHandler.GetInstance(); rh = RemoteHandler.GetInstance();
mh = new SpotifyMusicHandler(); mh = new SpotifyMusicHandler();
eh = new SpotifyEventHandler(this, mh); eh = new SpotifyEventHandler(this, mh);
}
public SpotifyLocalAPIClass(bool betaMode) : this()
{
SpotifyLocalAPIClass.betaMode = betaMode; SpotifyLocalAPIClass.betaMode = betaMode;
} }