22
backend/src/playlist/enum.py
Normal file
22
backend/src/playlist/enum.py
Normal 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()
|
||||
Reference in New Issue
Block a user