Adding enum.

Signed-off-by: Cliff Hill <xlorep@darkhelm.org>
This commit is contained in:
2024-04-23 13:35:16 -04:00
parent 8f882659c2
commit d54a43ba5b

View File

@@ -0,0 +1,22 @@
"""All enums for the project are kept here."""
from enum import StrEnum
from enum import auto
class Sublist(StrEnum):
"""StrEnum to categorize tracks within a playlist based on various criteria.
Values are auto-generated.
Attributes:
LEAST_RECENTLY_ADDED: Represents tracks that were added to the library the earliest.
LEAST_RECENTLY_PLAYED: Represents tracks that were last played the longest time ago.
LEAST_OFTEN_PLAYED: Represents tracks that have been played the least often.
RANDOM: Represents tracks that are selected randomly.
"""
LEAST_RECENTLY_ADDED = auto()
LEAST_RECENTLY_PLAYED = auto()
LEAST_OFTEN_PLAYED = auto()
RANDOM = auto()