private ServiceResponse<byte[]> getJsonPayload(Device device, String payloadJson) {
DeviceModel.ContentType contentType = DeviceModel.ContentType.APPLICATION_JSON;
if (device.getDeviceModel() != null &&
device.getDeviceModel().getContentType() != null) {
contentType = device.getDeviceModel().getContentType();
}
JsonConverter jsonConverter = BeanFactoryAnnotationUtils.qualifiedBeanOfType(beans, JsonConverter.class, contentType.getValue());
ServiceResponse<byte[]> jsonConverterResponse = jsonConverter.fromJson(payloadJson);
return jsonConverterResponse;
}
EventPublisherDevice.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:konker-platform
作者:
评论列表
文章目录