package com.evobms.project.ota.dto;

import com.evobms.project.ota.domain.OtaTasks;
import com.evobms.project.system.domain.BmsDevices;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(value = "OtaTaskQueryDTO", description = "根据SN查询设备OTA任务响应")
public class OtaTaskQueryDTO {

    @ApiModelProperty(value = "设备SN", example = "137PBP1M11001AFCF0000007")
    private String sn;

    @ApiModelProperty(value = "设备对象")
    private BmsDevices device;

    @ApiModelProperty(value = "最新一条OTA任务")
    private OtaTasks latestTask;

    @ApiModelProperty(value = "该设备的OTA任务列表，按最近更新时间倒序")
    private List<OtaTasks> taskList;
}
