Package net.roarsoftware.lastfm

Examples of net.roarsoftware.lastfm.Session


    firePropertyChange(Controller.MUSIC_NAME, null, musicName);
  }

  public void processSearchAndPlay(String radioToSearch) throws Exception {
    firePropertyChange(Controller.WORKING, null, true);
    Session session = login(Config.getValue(Config.USER), Config.getValue(Config.PASSWORD));
    Radio radio = tuneStation(radioToSearch, session, false);
    currentRadio = radio;
    processStop();
    continuePlaying = true;
    keepPlaying(radio, session);
View Full Code Here


  public void processPlay() throws Exception {
    if (isPlaying) {
      LOGGER.info("Already playing, ignoring");
    } else {
      firePropertyChange(Controller.WORKING, null, true);
      Session session = login(Config.getValue(Config.USER), Config.getValue(Config.PASSWORD));
      String recentStation = getRecentStation(Config.getValue(Config.USER), session);
      Radio radio = tuneStation(recentStation, session, true);
      currentRadio = radio;
      continuePlaying = true;
      keepPlaying(radio, session);
View Full Code Here

    }
  }

  public void processBan() throws Exception {
    if (isPlaying && currentTrack != null) {
      Session session = login(Config.getValue(Config.USER), Config.getValue(Config.PASSWORD));
      Result result = Track.ban(currentTrack.getArtist(), currentTrack.getName(), session);
      if (result.isSuccessful()) {
        LOGGER.debug("LOVE IT!");
        setShowStatuswMessage("BANNED");
      } else {
View Full Code Here

    }
  }

  public void processLove() throws Exception {
    if (isPlaying && currentTrack != null) {
      Session session = login(Config.getValue(Config.USER), Config.getValue(Config.PASSWORD));
      Result result = Track.love(currentTrack.getArtist(), currentTrack.getName(), session);
      if (result.isSuccessful()) {
        LOGGER.debug("LOVE IT!");
        setShowStatuswMessage("LOVE IT!");
      } else {
View Full Code Here

TOP

Related Classes of net.roarsoftware.lastfm.Session

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.