Class ResponseStatus

java.lang.Object
de.umass.lastfm.scrobble.ResponseStatus

@Deprecated public class ResponseStatus extends 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:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     
    static final int
    Deprecated.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    ResponseStatus(int status)
    Deprecated.
     
    ResponseStatus(int status, String message)
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    Returns the optional error message, which is only available if status is FAILED, or null, 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.
    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 Details

  • Constructor Details

    • ResponseStatus

      public ResponseStatus(int status)
      Deprecated.
    • ResponseStatus

      public ResponseStatus(int status, String message)
      Deprecated.
  • Method Details

    • getMessage

      public String getMessage()
      Deprecated.
      Returns the optional error message, which is only available if status is FAILED, or null, 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.
      Returns true if the operation was successful. Same as getStatus() == ResponseStatus.OK.
      Returns:
      true if status is OK