Class 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)
    • Field Summary

      Fields 
      Modifier and Type Field 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 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 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ResponseStatus

        public ResponseStatus​(int status)
        Deprecated.
      • ResponseStatus

        public ResponseStatus​(int status,
                              java.lang.String message)
        Deprecated.
    • Method Detail

      • getMessage

        public java.lang.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