package com.fzzy.gateway.data;
|
|
import com.fzzy.gateway.entity.GatewayDevice;
|
import lombok.Data;
|
|
import java.util.Date;
|
|
@Data
|
public class BaseReqData {
|
|
private String productId;
|
|
private String deviceId;
|
|
private String deviceName;
|
|
private String messageType;
|
|
private String messageId;
|
|
private String functionId;
|
|
private GatewayDevice device;
|
|
private boolean autoReplay;
|
|
private double weight;
|
|
private String carNumber;
|
|
private Date dayTime;
|
|
private String data;
|
|
private int index = 1;
|
|
public BaseReqData() {
|
}
|
|
public BaseReqData(GatewayDevice device) {
|
this.device = device;
|
this.productId = device.getProductId();
|
this.deviceId = device.getDeviceId();
|
this.deviceName = device.getDeviceName();
|
}
|
|
public BaseReqData(String productId, String deviceId, String deviceName, GatewayDevice device) {
|
this.productId = productId;
|
this.deviceId = deviceId;
|
this.deviceName = deviceName;
|
this.device = device;
|
}
|
}
|