|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.umass.lastfm.scrobble.ResponseStatus
@Deprecated public class ResponseStatus
Contains information about the result of a scrobbling operation and an optional error message.
ScrobbleResult
,
Track.scrobble(ScrobbleData, de.umass.lastfm.Session)
Field Summary | |
---|---|
static int |
BADAUTH
Deprecated. |
static int |
BADSESSION
Deprecated. |
static int |
BADTIME
Deprecated. |
static int |
BANNED
Deprecated. |
static int |
FAILED
Deprecated. |
static int |
OK
Deprecated. |
Constructor Summary | |
---|---|
ResponseStatus(int status)
Deprecated. |
|
ResponseStatus(int status,
String message)
Deprecated. |
Method Summary | |
---|---|
String |
getMessage()
Deprecated. Returns the optional error message, which is only available if status is FAILED , or
null , if no message is available. |
int |
getStatus()
Deprecated. Returns the result status code of the operation, which is one of the integer constants defined in this class. |
boolean |
ok()
Deprecated. Returns true if the operation was successful. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int OK
public static final int BANNED
public static final int BADAUTH
public static final int BADTIME
public static final int BADSESSION
public static final int FAILED
Constructor Detail |
---|
public ResponseStatus(int status)
public ResponseStatus(int status, String message)
Method Detail |
---|
public String getMessage()
status
is FAILED
, or
null
, if no message is available.
null
public int getStatus()
public boolean ok()
true
if the operation was successful. Same as getStatus() == ResponseStatus.OK
.
true
if status is OK
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |