Package de.umass.lastfm.scrobble
Class ResponseStatus
- java.lang.Object
-
- de.umass.lastfm.scrobble.ResponseStatus
-
@Deprecated public class ResponseStatus extends java.lang.Object
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:
ScrobbleResult
,Track.scrobble(ScrobbleData, de.umass.lastfm.Session)
-
-
Constructor Summary
Constructors Constructor Description ResponseStatus(int status)
Deprecated.ResponseStatus(int status, java.lang.String message)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getMessage()
Deprecated.Returns the optional error message, which is only available ifstatus
isFAILED
, ornull
, 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.Returnstrue
if the operation was successful.
-
-
-
Field Detail
-
OK
public static final int OK
Deprecated.- See Also:
- Constant Field Values
-
BANNED
public static final int BANNED
Deprecated.- See Also:
- Constant Field Values
-
BADAUTH
public static final int BADAUTH
Deprecated.- See Also:
- Constant Field Values
-
BADTIME
public static final int BADTIME
Deprecated.- See Also:
- Constant Field Values
-
BADSESSION
public static final int BADSESSION
Deprecated.- See Also:
- Constant Field Values
-
FAILED
public static final int FAILED
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
getMessage
public java.lang.String 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
-
-