package com.gh.gamecenter.entity

import android.os.Parcelable
import com.gh.gamecenter.qa.entity.Count
import com.gh.gamecenter.qa.entity.SourceEntity
import com.gh.gamecenter.qa.entity.TimeEntity
import com.google.gson.annotations.SerializedName
import kotlinx.parcelize.Parcelize

@Parcelize
class GamesCollectionDetailEntity(
    @SerializedName("_id")
    var id: String = "",
    var tags: ArrayList<TagInfoEntity>? = null,
    @SerializedName("activity_tags")
    var activityTags: ArrayList<ActivityLabelEntity>? = null,
    var games: ArrayList<GameEntity>? = null,
    var title: String = "",
    var intro: String = "",
    var cover: String = "",
    var video: Video? = null,
    var display: String = "",//self_only: 仅自己可见
    var status: String = "",// draft/pending/pass/failed
    var time: TimeEntity? = null,
    var stamp: String = "",//special_choice: 精选 official: 官方
    var count: Count? = null,
    var user: UserEntity? = null,
    var me: MeEntity? = null,
    val source: SourceEntity? = null,
    @SerializedName("ad_icon_active")
    var adIconActive: Boolean = false,
) : Parcelable {

    @Parcelize
    data class Video(
        var active: Boolean = false,
        var format: String = "",
        var title: String = "",
        var size: Long = 0,
        var url: String = "",
        var poster: String = "",
        var time: Long = 0
    ) : Parcelable
}
