Package de.umass.lastfm.scrobble
Class ResponseStatus
java.lang.Object
de.umass.lastfm.scrobble.ResponseStatus
Deprecated.
The 1.2.x scrobble protocol has now been deprecated in favour of the 2.0 protocol which is part of the Last.fm web services
API.
Contains information about the result of a scrobbling operation and an optional error message.
- Author:
- Janni Kovacs
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionResponseStatus
(int status) Deprecated.ResponseStatus
(int status, String message) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns the optional error message, which is only available ifstatus
isFAILED
, ornull
, if no message is available.int
Deprecated.Returns the result status code of the operation, which is one of the integer constants defined in this class.boolean
ok()
Deprecated.Returnstrue
if the operation was successful.
-
Field Details
-
OK
public static final int OKDeprecated.- See Also:
-
BANNED
public static final int BANNEDDeprecated.- See Also:
-
BADAUTH
public static final int BADAUTHDeprecated.- See Also:
-
BADTIME
public static final int BADTIMEDeprecated.- See Also:
-
BADSESSION
public static final int BADSESSIONDeprecated.- See Also:
-
FAILED
public static final int FAILEDDeprecated.- See Also:
-
-
Constructor Details
-
ResponseStatus
public ResponseStatus(int status) Deprecated. -
ResponseStatus
Deprecated.
-
-
Method Details
-
getMessage
Deprecated.Returns the optional error message, which is only available ifstatus
isFAILED
, ornull
, if no message is available.- Returns:
- the error message or
null
-
getStatus
public int getStatus()Deprecated.Returns the result status code of the operation, which is one of the integer constants defined in this class.- Returns:
- the status code
-
ok
public boolean ok()Deprecated.Returnstrue
if the operation was successful. Same asgetStatus() == ResponseStatus.OK
.- Returns:
true
if status is OK
-