MediaDownloadMapper

Functions to map models from other layers and / or packages into a MediaDownload.

Functions

Link copied to clipboard
fun map(media: Media, mediaDownloadEntity: MediaDownloadEntity): MediaDownload

Maps from Media and MediaDownloadEntity.

fun map(playlist: Playlist, mediaDownloadEntityList: List<MediaDownloadEntity>): List<MediaDownload>

Maps from Playlist and a list of MediaDownloadEntity.