2020-08-19 18:43:06 +00:00
|
|
|
package code.name.monkey.retromusic.db
|
|
|
|
|
2020-08-20 09:52:38 +00:00
|
|
|
import android.os.Parcelable
|
2020-08-19 18:43:06 +00:00
|
|
|
import androidx.room.Embedded
|
|
|
|
import androidx.room.Relation
|
2020-08-20 09:52:38 +00:00
|
|
|
import kotlinx.android.parcel.Parcelize
|
2020-08-19 18:43:06 +00:00
|
|
|
|
2020-08-20 09:52:38 +00:00
|
|
|
@Parcelize
|
2020-08-19 18:43:06 +00:00
|
|
|
data class PlaylistWithSongs(
|
|
|
|
@Embedded val playlistEntity: PlaylistEntity,
|
|
|
|
@Relation(
|
2020-08-20 06:49:08 +00:00
|
|
|
parentColumn = "playlist_id",
|
|
|
|
entityColumn = "playlist_creator_id"
|
2020-08-20 09:52:38 +00:00
|
|
|
)
|
|
|
|
val songs: List<SongEntity>
|
2020-08-21 14:19:15 +00:00
|
|
|
) : Parcelable
|
2020-08-20 20:02:40 +00:00
|
|
|
|