package com.sd.cavphmi.bean

/**
 * websocket解析目标感知物的接受数据
 *
 **/
class PerceptionBean : ArrayList<PerceptionBeanItem>()

data class PerceptionBeanItem(
    val accessTime: Long,
    val deviceId: String,
    val participants: List<Participant>,
    val receiveTime: Long,
    val reportTime: Long,
//    val statistic: Statistic
)

data class Participant(
    val color: Int,
    val gear: Int,
    val heading: Double,
    val latitude: Double,
    val longitude: Double,
    val ptcId: String,
    val ptcType: String,//
    val speed: Double
)

data class Statistic(
    val ambulance: Int,
    val bike: Int,
    val bus: Int,
    val car: Int,
    val coach: Int,
    val concrete_mixer: Int,
    val conical_barrel: Int,
    val electric_bicycle: Int,
    val engine_emergency: Int,
    val fire_truck: Int,
    val heavy_truck: Int,
    val large_truck: Int,
    val micro_truck: Int,
    val midibus: Int,
    val minibus: Int,
    val motorcycle: Int,
    val mpv: Int,
    val pedestrian: Int,
    val pickup: Int,
    val police_car: Int,
    val small_truck: Int,
    val spillage: Int,
    val suv: Int,
    val tank_truck: Int,
    val tricycle: Int,
    val truck: Int,
    val unknown: Int
)