FakeMusicCatalogItem

data class FakeMusicCatalogItem(val item: IviMediaItem, val children: List<FakeMusicCatalogItem> = emptyList()) : Parcelable

FakeMusic media source catalog entry.

This can be used to make a realistic-looking catalog with categories, playable, and browsable items to run a test for the media domain with a specific predictable data set.

Constructors

Link copied to clipboard
fun FakeMusicCatalogItem(item: IviMediaItem, children: List<FakeMusicCatalogItem> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Export this FakeMusicCatalogItem to normal IviMediaItems in a list, including any defined children.

Link copied to clipboard

Returns an IviMediaItem with the given mediaId in this item and all of its children.

Link copied to clipboard

Returns the FakeMusicCatalogItem containing the given mediaId in its children, or null if no items match.

Inherited functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)