package sendMQTT.HTTPUtils; import com.fasterxml.jackson.annotation.JsonProperty; import lombok.Data; /** * 移动路径命令JSON结构 */ @Data public class MovePathCommand { @JsonProperty("msg_id") private String msgId; private long timestamp; @JsonProperty("user_id") private String userId; @JsonProperty("device_id") private String deviceId; private String command; private MovePathData data; public MovePathCommand() { } public MovePathCommand(String msgId, long timestamp, String userId, String deviceId, MovePathData data) { this.msgId = msgId; this.timestamp = timestamp; this.userId = userId; this.deviceId = deviceId; this.command = "movePath"; this.data = data; } /** * 数据内部类 */ @Data public static class MovePathData { private String filename; private String filesize; private String url; public MovePathData() { } public MovePathData(String filename, String filesize, String url) { this.filename = filename; this.filesize = filesize; this.url = url; } } }