public GooglePlayHandler()
        {
            gpApi = new API();
            threadHandler = new AutoResetEvent(false);

            // Add Events
            // gpApi.OnCreatePlaylistComplete += null; // Not Used
            // gpApi.OnDeletePlaylist += null; // Not Used
            gpApi.OnError += CatchError;
            gpApi.OnGetAllSongsComplete += GotAllSongs;
            //gpApi.OnGetPlaylistComplete += null; // Not Used
            gpApi.OnGetPlaylistsComplete += GotAllPlaylists;
            //gpApi.OnGetSongURL += null; // Not Used
            gpApi.OnLoginComplete += LoginSuccessful;
        }
 public void ProcessLogoutCommand()
 {
     // there is no log out API. Just instantiate new API.
     api = new API ();
     SetupApi ();
 }