package com.njcn.gather.storage.pojo.param;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * @author hongawen
 * @version 1.0
 * @data 2025/1/10 16:06
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class SingleNonHarmParam implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 检测计划编码
     */
    private String planCode;

    /**
     * 被检设备ID
     */
    private String devId;

    /**
     * 通道数
     */
    private Integer channelNo;

    /**
     * 测试项类型Id
     */
    private String adType;

    /**
     * 测试项类型，暂态的存在多个
     */
    private List<String> valueTypeList;

    /**
     * 测试项所在脚本的位置
     */
    private Integer sort;

    private List<Integer> sortList;

    public SingleNonHarmParam(String planCode, String devId, Integer channelNo, String adType, Integer sort) {
        this.planCode = planCode;
        this.devId = devId;
        this.channelNo = channelNo;
        this.adType = adType;
        this.sort = sort;
    }

    public SingleNonHarmParam(String planCode, String devId, Integer channelNo, String adType, List<Integer> sortList) {
        this.planCode = planCode;
        this.devId = devId;
        this.channelNo = channelNo;
        this.adType = adType;
        this.sortList = sortList;
    }

    public SingleNonHarmParam(String planCode, String devId, Integer channelNo, List<String> valueTypeList, Integer sort) {
        this.planCode = planCode;
        this.devId = devId;
        this.channelNo = channelNo;
        this.valueTypeList = valueTypeList;
        this.sort = sort;
    }

    public SingleNonHarmParam(String planCode, String devId, Integer channelNo, List<String> valueTypeList, List<Integer> sortList) {
        this.planCode = planCode;
        this.devId = devId;
        this.channelNo = channelNo;
        this.valueTypeList = valueTypeList;
        this.sortList = sortList;
    }
}
