Package de.umass.lastfm.scrobble

Examples of de.umass.lastfm.scrobble.ResponseStatus.ok()


        } else {
            try {
                logger.fine("Authorizing user: " + user);
                scrobbler = newScrobbler(CLIENT_ID, CLIENT_VERSION, user);
                ResponseStatus status = scrobbler.handshake(password);
                authorized = status.ok();
                if (!authorized) {
                    switch (status.getStatus()) {
                        case ResponseStatus.BADAUTH:
                        case ResponseStatus.BANNED:
                            config.setBoolean("lastfm.enabled", false);
View Full Code Here


                            continue;
                        }
                    }
                    logger.fine("Submitting data: " + data.toString());
                    ResponseStatus status = scrobbler.submit(data);
                    if (status.ok()) {
                        waitTime = MIN_WAIT_TIME;
                        synchronized (submitQueue) {
                            submitQueue.poll();
                        }
                    } else {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.