TaskData.java 699 Bytes
package com.viontech.fanxing.task.model;

import com.viontech.fanxing.commons.model.Task;
import com.viontech.fanxing.task.model.runtime.RuntimeConfig;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

/**
 * .
 *
 * @author 谢明辉
 * @date 2021/7/12
 */
@NoArgsConstructor
@Getter
@Setter
public class TaskData implements Serializable {

    private Task task;

    private RuntimeConfig runtimeConfig;

    private String storeConfig;

    private String deviceUnid;


    public TaskData(Task task) {
        this.task = task;
        runtimeConfig = RuntimeConfig.createConfig(task.getRuntimeConf(), task.getRuntimeType());
    }


}