package com.gh.gamecenter.entity

import android.os.Parcelable
import androidx.room.Entity
import androidx.room.Ignore
import androidx.room.PrimaryKey
import androidx.room.TypeConverters
import com.gh.gamecenter.feature.entity.User
import com.gh.gamecenter.room.converter.UserConverter
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize

@Entity
@Parcelize
data class MyVideoEntity(
    @PrimaryKey
    @SerializedName("_id", alternate = ["id"])
    var id: String = "",
    var poster: String = "",
    var url: String = "",
    var vote: Int = 0,
    var length: Long = 0,
    // 有三种状态 pass通过，fail未通过，pending审核中
    var status: String = "",
    var title: String = "",
    @SerializedName("comment_count")
    var commentCount: Int = 0,
    @TypeConverters(UserConverter::class)
    var user: User = User(),
    @Ignore
    var des: String = "",
    @Ignore
    @SerializedName("game_id")
    var gameId: String = "",

    var time: Long = 0,//浏览时间
    var videoStreamRecord: Int = 0//是否在视频流中记录的，1是 0不是
) : Parcelable