| | |
| | | |
| | | import io.github.yezhihao.protostar.util.KeyValuePair; |
| | | import io.netty.buffer.Unpooled; |
| | | import io.swagger.models.auth.In; |
| | | import org.yzh.protocol.basics.JTMessage; |
| | | import org.yzh.protocol.commons.Action; |
| | | import org.yzh.protocol.commons.ShapeAction; |
| | |
| | | //位置信息汇报 |
| | | public static T0200 T0200Attributes() { |
| | | T0200 bean = T0200(); |
| | | Map<Long, Object> attributes = new TreeMap<>(); |
| | | Map<Integer, Object> attributes = new TreeMap<>(); |
| | | attributes.put(AttributeKey.Mileage, 11); |
| | | attributes.put(AttributeKey.Fuel, 22); |
| | | attributes.put(AttributeKey.Speed, 33); |
| | |
| | | |
| | | |
| | | T0200 bean = T0200(); |
| | | Map<Long, Object> attributes = new TreeMap<>(); |
| | | attributes.put(Long.valueOf(AlarmADAS.key), alarmADAS); |
| | | attributes.put(Long.valueOf(AlarmDSM.key), alarmDSM); |
| | | attributes.put(Long.valueOf(AlarmTPMS.key), alarmTPMS); |
| | | attributes.put(Long.valueOf(AlarmBSD.key), alarmBSD); |
| | | Map<Integer, Object> attributes = new TreeMap<>(); |
| | | attributes.put( AlarmADAS.key, alarmADAS); |
| | | attributes.put( AlarmDSM.key, alarmDSM); |
| | | attributes.put( AlarmTPMS.key, alarmTPMS); |
| | | attributes.put( AlarmBSD.key, alarmBSD); |
| | | |
| | | bean.setAttributes(attributes); |
| | | return bean; |