package com.gh.gamecenter.entity

import android.os.Parcelable
import com.gh.gamecenter.common.entity.CommunityEntity
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize

@Parcelize
class VideoDraftEntity(
    @SerializedName("_id")
    val id: String = "",
    val title: String = "",
    val des: String = "",
    var poster: String = "",
    val url: String = "",
    @SerializedName("game_id")
    val gameId: String = "",
    @SerializedName("game_name")
    val gameName: String = "",
    @SerializedName("category_id")
    val categoryId: String? = "",
    val size: Long = 0,
    val length: Long = 0,
    @SerializedName("tag_id")
    val tagsId: List<String>? = ArrayList(),
    val user: UserEntity = UserEntity(),
    val time: VideoTimeEntity = VideoTimeEntity(),
    @SerializedName("local_path")
    var localPath: String? = "",
    val original: String = "",//是否原创 //是否原创 yes/no 默认为空字符串
    val source: String = "",//转载来源, 当 original=yes
    @SerializedName("tag_activity_name")
    val tagActivityName: String = "",
    @SerializedName("tag_activity_id")
    var tagActivityId: String = "",
    var type: String = "",
    var game: GameEntity? = null,
    @SerializedName("bbs_id")
    var bbsId: String = "",
    var bbs: CommunityEntity? = null
) : Parcelable

@Parcelize
class VideoTimeEntity(
    val create: Long = 0,
    val update: Long = 0
) : Parcelable