package com.zxhl.cms.ad.upload.model

import java.io.Serializable


/**
 * Created by gaoleichao on 2018/7/13.
 */
class NewsEntity : Serializable {
    var tab_id: String = ""
    var type: Int = 0
    var slot_id: String? = ""
    var read_num: String? = ""
    var read_coins: String? = ""
    var adType: Int = 0
    var total_read_coins: String? = ""
    var codeId: String? = ""
    var delay: Int = 0
    var redPacketFlag: Int = 0
    var author_name: String = ""
    var appmodel_id: Int = 0
    var slot_ad_type: Int = 0
    var category: String? = ""
    var timeTrigger: String? = ""
    var current_nums: String? = ""
    var source: String? = ""
    var award_limit: String? = ""
    var sourceUrl: String? = ""
    var url: String? = ""
    var title: String? = ""
    var description: String? = ""
    var pubDate: String? = ""
    var images: List<String>? = null
    var icon_url: String? = null
    var sid: Int = 0
    var tabid: String? = ""
    var image_url: String? = ""
    var deep_url_re: String? = ""
    var incentive_level: Int = 0
    var opentype: Int = 0
    var alert: String? = ""
    var explorerType: String? = ""
    var pk: String? = ""
    var image_render_type: Int = 0
    var position: Int = 0
    var isStick: Int = 0
    var coins: String? = ""
    var pkg: String? = ""
    var total_coins: String? = ""
    var desc: String? = ""
    var redPackageText: String? = ""
    var contentType: String? = ""
    var clk_tracking: List<String>? = null
    var imp_tracking: List<String>? = null
    var big_images: List<String>? = null
    var downloadSucc: List<String>? = null
    var startDownload: List<String>? = null
    var appActiveSucc: List<String>? = null
    var installSucc: List<String>? = null
    var startInstall: List<String>? = null
    var clickDownX: String? = ""
    var clickDownY: String? = ""
    var clickUpX: String? = ""
    var clickId: String? = ""
    var clickUpY: String? = ""
    var progress: String? = ""
    var ts: String? = ""
    var ad_width: String? = ""
    var ad_height: String? = ""
    var adMarkImage: String? = ""
    var adMark: String? = ""
    var label: String? = ""
    var videoAdBody: String? = ""
    var rowKey: String? = ""
    var shareType: String? = ""
    var shareUrl: String? = ""
    var status: Int = 0
    var autoPlay: Int = 0
    var quiet: Int = 0
    var adPlatform: String? = ""



    var clickViewUpY: String? = ""
    var clickViewUpX: String? = ""
    var clickViewDownY: String? = ""
    var clickViewDownX: String? = ""
    var cornerText: String? = ""
    var isClick: Boolean = false
    var isShow: Boolean = false
    var miniProgram: MiniPro? = null
    var videoSrc: VideoSrc? = null
    var isPlaying = false

    var showFromFeed: List<String>? = null//曝光信息流
    var playFromFeed: List<String>? = null//点击信息流
    var showParams: MutableMap<String, String>? = null//曝光信息参数
    var playParams: MutableMap<String, String>? = null//点击信息参数
    var from: String? = ""
    var date: String? = ""//视频发布时间

    class Track : Serializable {
        var replace: String? = ""
        var default: String? = ""
    }

    class MiniPro : Serializable {
        var miniPath: String? = ""
        var miniId: String? = ""
        var appId: String? = ""
    }

    class VideoSrc : Serializable {
        var videoURL: String? = null
        var loadStart: List<String>? = null
        var loadFail: List<String>? = null
        var loadSuccess: List<String>? = null
        var playStart: List<String>? = null
        var playComplete: List<String>? = null
        var playCancel: List<String>? = null

        var followVideoImage: String? = null
        var followVideoURL: String? = null
        var followVideoH5: String? = null
    }

    companion object {
        const val TYPE_NEWS = 0//新闻
        const val TYPE_DSP_AD = 5//DSP广告
        const val TYPE_CMS_AD = 3//CMS广告
        const val TYPE_VIDEO = 2//视频

        const val TYPE_SOGOU_AD = 119//搜狗广告
        const val TYPE_FEED_AD = 118//今日头条广告
        const val TYPE_PUMA_AD = 126//瑞狮
        const val TYPE_GDT_AD = 141//广点通


        const val AD_TYPE_SDK = 1
        const val AD_TYPE_URL = 2
        const val AD_TYPE_API = 3
        const val AD_TYPE_SHARE = 4
        const val AD_TYPE_WAKEUP = 5
        const val AD_TYPE_DOWNLOAD = 6
        const val AD_TYPE_MINI_PROGRAM = 8
        const val AD_TYPE_VIDEO = 9

        const val AD_TYPE_APPMODEL = 7


        const val NONE_REDPACKET = 0
        const val REDPACKET = 1
    }
}
