de.umass.lastfm.scrobble
@Deprecated public class ResponseStatus extends Object
ScrobbleResult
,
Track.scrobble(ScrobbleData, de.umass.lastfm.Session)
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
ResponseStatus(int status)
Deprecated.
|
ResponseStatus(int status,
String message)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
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. |
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
public ResponseStatus(int status)
public ResponseStatus(int status, String message)
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