1078-定位数据批量上传+多媒体事件信息上传+多媒体数据上传

This commit is contained in:
648540858
2024-05-09 00:03:54 +08:00
parent c6e3df685a
commit cc71b7d9ca
5 changed files with 270 additions and 1 deletions

View File

@@ -0,0 +1,84 @@
package com.genersoft.iot.vmp.jt1078.bean;
import io.netty.buffer.ByteBuf;
import io.swagger.v3.oas.annotations.media.Schema;
@Schema(description = "多媒体事件信息")
public class JTMediaEventInfo {
@Schema(description = "多媒体数据 ID")
private long id;
@Schema(description = "多媒体类型, 0图像1音频2视频")
private int type;
@Schema(description = "多媒体格式编码, 0JPEG1TIF2MP33WAV4WMV其他保留")
private int code;
@Schema(description = "事件项编码: 0平台下发指令1定时动作2抢劫报警触发3碰 撞侧翻报警触发4门开拍照5门关拍照6车门由开 变关 ,车速从小于20km到超过20km7定距拍照")
private int eventCode;
@Schema(description = "通道 ID")
private int channelId;
public static JTMediaEventInfo decode(ByteBuf buf) {
JTMediaEventInfo jtMediaEventInfo = new JTMediaEventInfo();
jtMediaEventInfo.setId(buf.readUnsignedInt());
jtMediaEventInfo.setType(buf.readUnsignedByte());
jtMediaEventInfo.setCode(buf.readUnsignedByte());
jtMediaEventInfo.setEventCode(buf.readUnsignedByte());
jtMediaEventInfo.setChannelId(buf.readUnsignedByte());
return jtMediaEventInfo;
}
public long getId() {
return id;
}
public void setId(long id) {
this.id = id;
}
public int getType() {
return type;
}
public void setType(int type) {
this.type = type;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public int getEventCode() {
return eventCode;
}
public void setEventCode(int eventCode) {
this.eventCode = eventCode;
}
public int getChannelId() {
return channelId;
}
public void setChannelId(int channelId) {
this.channelId = channelId;
}
@Override
public String toString() {
return "JTMediaEventInfo{" +
"id=" + id +
", type=" + type +
", code=" + code +
", eventCode=" + eventCode +
", channelId=" + channelId +
'}';
}
}