package org.schabi.newpipe.player

import android.os.Parcelable
import kotlinx.parcelize.Parcelize

// We model this as an enum class plus one struct for each enum value
// so we can consume it from Java properly. After converting to Kotlin,
// we could switch to a sealed enum class & a proper Kotlin `when` match.
enum class PlayerIntentType {
    Enqueue,
    EnqueueNext,
    TimestampChange,
    AllOthers
}

/**
 * A timestamp on the given was clicked and we should switch the playing stream to it.
 */
@Parcelize
data class TimestampChangeData(
    val serviceId: Int,
    val url: String,
    val seconds: Int
) : Parcelable
