TaskData.java
699 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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());
}
}