mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
Updated constructor to use a default parameter instead of going the overload route.
This commit is contained in:
parent
510c33489d
commit
bd5d77528b
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user