@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.
|
private String |
message
Deprecated.
|
static int |
OK
Deprecated.
|
private int |
status
Deprecated.
|
Constructor and Description |
---|
ResponseStatus(int status)
Deprecated.
|
ResponseStatus(int status,
String message)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
(package private) static int |
codeForStatus(String status)
Deprecated.
|
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
private int status
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 OKstatic int codeForStatus(String status)
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses