package com.xw.yunwei.model
|
|
import com.google.gson.annotations.SerializedName
|
import com.xw.yunwei.extension.dateChangePattern
|
|
/**
|
* 车辆检测记录实体类
|
*/
|
data class CarRecordCheckModel(
|
|
/**
|
* 当前模式
|
* 1 = 接单模式
|
* 2 = 测试模式
|
*/
|
@SerializedName("acceptOrTest")
|
val acceptOrTest: Int? = null,
|
|
/**
|
* 检测时间
|
*/
|
@SerializedName("checkTime")
|
val checkTime: String? = null,
|
|
/**
|
* 防撞激活状态
|
* 建议:0=异常 1=正常
|
*/
|
@SerializedName("collisionPrevention")
|
val collisionPrevention: Int? = null,
|
|
/**
|
* 通讯自检状态
|
* 建议:0=异常 1=正常
|
*/
|
@SerializedName("communicationSelfCheck")
|
val communicationSelfCheck: Int? = null,
|
|
/**
|
* 记录创建人(前端忽略)
|
*/
|
@SerializedName("createBy")
|
val createBy: String? = null,
|
|
/**
|
* 记录创建时间(前端忽略)
|
*/
|
@SerializedName("createTime")
|
val createTime: String? = null,
|
|
/**
|
* 是否删除:false-未删除,true-已删除
|
*/
|
@SerializedName("deleted")
|
val deleted: Boolean? = null,
|
|
/**
|
* 求助按钮状态
|
* 建议:0=异常 1=正常
|
*/
|
@SerializedName("helpButton")
|
val helpButton: Int? = null,
|
|
/**
|
* 求助按钮检测图(URL或Base64)
|
*/
|
@SerializedName("helpButtonPicture")
|
val helpButtonPicture: String? = null,
|
|
/**
|
* 主键ID
|
*/
|
@SerializedName("id")
|
val id: Long? = null,
|
|
/**
|
* 交互屏状态
|
* 建议:0=异常 1=正常
|
*/
|
@SerializedName("interactiveScreen")
|
val interactiveScreen: Int? = null,
|
|
/**
|
* 交互屏检测图(URL或Base64)
|
*/
|
@SerializedName("interactiveScreenPicture")
|
val interactiveScreenPicture: String? = null,
|
|
/**
|
* 网络检测状态
|
* 建议:0=异常 1=正常
|
*/
|
@SerializedName("networkDetection")
|
val networkDetection: Int? = null,
|
|
/**
|
* 操作时间
|
*/
|
@SerializedName("operationTime")
|
val operationTime: String? = null,
|
|
/**
|
* 检查人ID
|
*/
|
@SerializedName("operationsUserId")
|
val operationsUserId: Long? = null,
|
|
/**
|
* 结束操作人姓名
|
*/
|
@SerializedName("operatorEndName")
|
val operatorEndName: String? = null,
|
|
/**
|
* 开始操作人姓名
|
*/
|
@SerializedName("operatorStartName")
|
val operatorStartName: String? = null,
|
|
/**
|
* 支付功能状态
|
* 建议:0=异常 1=正常
|
*/
|
@SerializedName("paymentFunction")
|
val paymentFunction: Int? = null,
|
|
/**
|
* 支付功能检测图(URL或Base64)
|
*/
|
@SerializedName("paymentFunctionPicture")
|
val paymentFunctionPicture: String? = null,
|
|
/**
|
* 车牌号
|
*/
|
@SerializedName("plateNumber")
|
val plateNumber: String? = null,
|
|
/**
|
* 远程自检状态
|
* 建议:0=异常 1=正常
|
*/
|
@SerializedName("remoteSelfCheck")
|
val remoteSelfCheck: Int? = null,
|
|
/**
|
* 传感器清洁状态
|
* 建议:0=异常 1=正常
|
*/
|
@SerializedName("sensorCleaning")
|
val sensorCleaning: Int? = null,
|
|
/**
|
* 传感器清洁检测图(URL或Base64)
|
*/
|
@SerializedName("sensorCleaningPicture")
|
val sensorCleaningPicture: String? = null,
|
|
/**
|
* 传感器自检状态
|
* 建议:0=异常 1=正常
|
*/
|
@SerializedName("sensorSelfCheck")
|
val sensorSelfCheck: Int? = null,
|
|
/**
|
* 系统检查状态
|
* 建议:0=异常 1=正常
|
*/
|
@SerializedName("systemCheck")
|
val systemCheck: Int? = null,
|
|
/**
|
* 系统检查图(URL或Base64)
|
*/
|
@SerializedName("systemCheckPicture")
|
val systemCheckPicture: String? = null,
|
|
/**
|
* 关联任务ID
|
*/
|
@SerializedName("taskId")
|
val taskId: Long? = null,
|
|
/**
|
* 记录修改人(前端忽略)
|
*/
|
@SerializedName("upStringBy")
|
val upStringBy: String? = null,
|
|
/**
|
* 记录修改时间(前端忽略)
|
*/
|
@SerializedName("upStringTime")
|
val upStringTime: String? = null,
|
|
/**
|
* 车辆颜色
|
*/
|
@SerializedName("vehicleColor")
|
val vehicleColor: String? = null,
|
|
/**
|
* 车辆ID
|
*/
|
@SerializedName("vehicleId")
|
val vehicleId: Long? = null,
|
|
/**
|
* 车辆图片(URL或Base64,多张以逗号分隔)
|
*/
|
@SerializedName("vehiclePictures")
|
val vehiclePictures: String? = null,
|
|
/**
|
* 版本核对状态
|
* 建议:0=异常 1=正常
|
*/
|
@SerializedName("versionVerification")
|
val versionVerification: Int? = null
|
){
|
|
//获取显示操作时间
|
fun getShowOperationTime(): String?{
|
return operationTime?.dateChangePattern("yyyy-MM-dd HH:mm:ss","yyyy/MM/dd HH:mm:ss")
|
}
|
}
|