Add save playlist 💾
This commit is contained in:
parent
41e8aa8a03
commit
6e8ff6ab71
7 changed files with 105 additions and 60 deletions
|
@ -86,4 +86,10 @@ fun Song.toPlayCount(): PlayCountEntity {
|
|||
System.currentTimeMillis(),
|
||||
1
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
fun List<Song>.toSongsEntity(playlistEntity: PlaylistEntity): List<SongEntity> {
|
||||
return map {
|
||||
it.toSongEntity(playlistEntity.playListId)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue