package com.tencent.liteav.demo.superplayer.database.entity

import androidx.room.ColumnInfo
import androidx.room.Entity
import androidx.room.PrimaryKey

@Entity
data class CountDown(
    @PrimaryKey(autoGenerate = true)
    val id: Long? = null,

    @ColumnInfo(name = "course_id")
    val courseId: String,

    /* 定时类型 1集数 2时长 */
    @ColumnInfo(name = "type")
    val type: Int,

    /** 定时的值
     * 类型为集数时则表示多少集
     * 类型为时长是则表示多少分钟
     */
    @ColumnInfo(name = "value")
    val value: Int
) {
    companion object {
        @JvmStatic
        public val TYPE_EPISODE = 1;

        @JvmStatic
        public val TYPE_DURATION = 2;
    }
}
