Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void transformIssueCreatedActivities(JsonNode jsonData) {
- // Преобразуем исходный объект JSON в формат события путём сопоставления полей
- Event event = new Event();
- event.setTmestamp = jsonData.findPath("timestamp").textValue();
- event.setResource = jsonData.findPath("author").findPath("login").textValue();
- event.setType = jsonData.findPath("type").textValue();
- event.setOther = jsonData;
- transformedEvents.put(event);
- }
Add Comment
Please, Sign In to add comment