grook

Untitled

Jun 15th, 2021 (edited)
239
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.49 KB | None | 0 0
  1. private void transformIssueCreatedActivities(JsonNode jsonData) {
  2.     // Преобразуем исходный объект JSON в формат события путём сопоставления полей
  3.     Event event = new Event();
  4.     event.setTmestamp = jsonData.findPath("timestamp").textValue();
  5.     event.setResource = jsonData.findPath("author").findPath("login").textValue();
  6.     event.setType = jsonData.findPath("type").textValue();
  7.     event.setOther = jsonData;
  8.     transformedEvents.put(event);
  9. }
Add Comment
Please, Sign In to add comment