Class Status

  • All Implemented Interfaces:
    Serializable

    public class Status
    extends Object
    implements Serializable
    Optional tag to specify the status of a media object -- whether it's still active or it has been blocked/deleted.
    Since:
    MediaRSS 1.5.0
    See Also:
    Serialized Form
    • Constructor Detail

      • Status

        public Status()
    • Method Detail

      • getState

        public Status.State getState()
        state can have values active, blocked or deleted. active means a media object is active in the system, blocked means a media object is blocked by the publisher, deleted means a media object has been deleted by the publisher.
        Returns:
        the state
      • setState

        public void setState​(Status.State state)
        state can have values active, blocked or deleted. active means a media object is active in the system, blocked means a media object is blocked by the publisher, deleted means a media object has been deleted by the publisher.
        Parameters:
        state - the state
      • getReason

        public String getReason()
        reason is a reason explaining why a media object has been blocked/deleted. It can be plain text or a URL.
        Returns:
        plain text or URL
      • setReason

        public void setReason​(String reason)
        reason is a reason explaining why a media object has been blocked/deleted. It can be plain text or a URL.
        Parameters:
        reason - plain text or URL
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object