spotifywebapipython.models.explicitcontent

@export
class ExplicitContent:

Spotify Web API Explicit Content object.

Contains information about explicit content settings.

ExplicitContent(root: dict = None)

Initializes a new instance of the class.

Arguments:
  • root (dict): Spotify Web API JSON response in dictionary format, used to load object attributes; otherwise, None to not load attributes.
FilterEnabled: bool

When true, indicates that explicit content should not be played.

FilterLocked: bool

When true, indicates that the explicit content setting is locked and can't be changed by the user.

def ToDictionary(self) -> dict:

Returns a dictionary representation of the class.

def ToString(self) -> str:

Returns a displayable string representation of the class.