Class ExplicitContentSettings

java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject
se.michaelthelin.spotify.model_objects.specification.ExplicitContentSettings
All Implemented Interfaces:
Serializable, IModelObject

public class ExplicitContentSettings extends AbstractModelObject
Retrieve information about the current user's explicit content settings by building instances from this class.
See Also:
  • Method Details

    • getFilterEnabled

      public Boolean getFilterEnabled()
      Check whether explicit content should not be played.
      Returns:
      true if explicit content should not be played.
    • getFilterLocked

      public Boolean getFilterLocked()
      Check whether the explicit content setting is locked and can't be changed by the user.
      Returns:
      true if the explicit content setting is locked.
    • toString

      public String toString()
      Description copied from class: AbstractModelObject
      Returns a String representation of this model object in the style:

      ModelObject(attr1=value1, attr2=value2, ...)

      Specified by:
      toString in class AbstractModelObject
    • builder

      Description copied from interface: IModelObject
      Create a builder for building an instance of a model object.
      The type of the builder and its methods depend on its corresponding implementation.
      Returns:
      A builder object.