Overview
Deeztracker Mobile supports two types of playlists:- Deezer Playlist - Playlists from the Deezer API with rich metadata
- Local Playlist - User-created playlists stored locally on the device
Deezer Playlist Model
Defined inapp/src/main/java/com/crowstar/deeztrackermobile/features/deezer/DeezerModels.kt
The Deezer Playlist model represents playlists fetched from the Deezer API.
Properties
Unique identifier for the Deezer playlist
Title of the playlist
Optional description of the playlist
Total duration of all tracks in the playlist (in seconds)
Whether the playlist is public or private
Indicates if this is a “Loved Tracks” playlist (serialized as
is_loved_track)Whether the playlist is collaborative
Number of tracks in the playlist (serialized as
nb_tracks)Number of fans/followers of the playlist
URL link to the playlist on Deezer
Shareable URL for the playlist
URL to the playlist cover image (default size)
URL to the small playlist cover image (serialized as
picture_small)URL to the medium playlist cover image (serialized as
picture_medium)URL to the large playlist cover image (serialized as
picture_big)URL to the extra-large playlist cover image (serialized as
picture_xl)Checksum value for the playlist
API endpoint URL to fetch the playlist’s tracks
Date when the playlist was created (serialized as
creation_date)User object representing the creator of the playlist
Type identifier (typically “playlist”)
Response object containing the list of tracks in the playlist
Local Playlist Model
Defined inapp/src/main/java/com/crowstar/deeztrackermobile/features/localmusic/LocalPlaylist.kt
The LocalPlaylist model represents user-created playlists stored locally on the device.
Properties
Unique identifier for the local playlist. Automatically generated as a UUID if not provided.
Name of the playlist
List of Deezer track IDs contained in the playlist. Defaults to an empty list.
Example Usage
Deezer Playlist Example
Local Playlist Example
Adding Tracks to Local Playlist
Source Code
Deezer Playlist
Local Playlist
Differences Between Playlist Types
| Feature | Deezer Playlist | Local Playlist |
|---|---|---|
| ID Type | Long | String (UUID) |
| Track Storage | Full Track objects via API | Track IDs only |
| Metadata | Rich (description, fans, creator) | Minimal (name only) |
| Images | Multiple sizes available | None |
| Source | Deezer API | Local storage |
| Mutability | Read-only from API | Fully editable by user |