|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import io.github.yezhihao.protostar.annotation.Field; | 
|---|
|  |  |  | import io.github.yezhihao.protostar.annotation.Message; | 
|---|
|  |  |  | import io.swagger.models.auth.In; | 
|---|
|  |  |  | import lombok.Data; | 
|---|
|  |  |  | import org.yzh.protocol.basics.JTMessage; | 
|---|
|  |  |  | import org.yzh.protocol.commons.JT808; | 
|---|
|  |  |  | import org.yzh.protocol.commons.transform.AttributeConverter; | 
|---|
|  |  |  | import org.yzh.protocol.commons.transform.AttributeConverterYue; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import java.math.BigDecimal; | 
|---|
|  |  |  | import java.time.LocalDateTime; | 
|---|
|  |  |  | import java.util.Map; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | 
|---|
|  |  |  | * https://gitee.com/yezhihao/jt808-server | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @Message(JT808.位置信息汇报) | 
|---|
|  |  |  | @Data | 
|---|
|  |  |  | public class T0200 extends JTMessage { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | /** | 
|---|
|  |  |  | 
|---|
|  |  |  | private LocalDateTime deviceTime; | 
|---|
|  |  |  | @Field(converter = AttributeConverter.class, desc = "位置附加信息", version = {-1, 0}) | 
|---|
|  |  |  | @Field(converter = AttributeConverterYue.class, desc = "位置附加信息(粤标)", version = 1) | 
|---|
|  |  |  | private Map<Long, Object> attributes; | 
|---|
|  |  |  | private Map<Integer, Object> attributes; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public int getWarnBit() { | 
|---|
|  |  |  | return warnBit; | 
|---|
|  |  |  | 
|---|
|  |  |  | this.deviceTime = deviceTime; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public Map<Long, Object> getAttributes() { | 
|---|
|  |  |  | return attributes; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public void setAttributes(Map<Long, Object> attributes) { | 
|---|
|  |  |  | this.attributes = attributes; | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Override | 
|---|
|  |  |  | public String toString() { | 
|---|