Beispiel #1
0
        public override void LoggedIn(SpotifySession session, SpotifyError error)
        {
            if (error != SpotifyError.Ok)
            {
                IsFinished = true;
                Console.WriteLine("Failed to log in to Spotify: {0}", Spotify.ErrorMessage(error));
            }
            var    me          = session.User();
            string displayName = me.IsLoaded() ? me.DisplayName() : me.CanonicalName();
            string username    = session.UserName();
            var    cc          = session.UserCountry();

            Console.Error.WriteLine("Logged in to Spotify as user {0} [{1}] (registered in country: {2})", username, displayName, Spotify.CountryString(cc));
            iReader.RequestInput("> ");
            // TODO: self test
        }
Beispiel #2
0
 public override void ScrobbleError(SpotifySession session, SpotifyError error)
 {
     Console.Error.WriteLine("Scrobble failure: {0}", Spotify.ErrorMessage(error));
 }
Beispiel #3
0
 public override void ConnectionError(SpotifySession session, SpotifyError error)
 {
     Console.Error.WriteLine("Connection to Spotify failed: {0}", Spotify.ErrorMessage(error));
 }