Advertisement
grook

Untitled

Jun 18th, 2021
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. private void transformCreateBranch(Pair<String, JsonNode> eventData) {
  2.     // Задание отображение JSON -> Модель event
  3.     Event event = new Event();
  4.     event.timestamp = eventData.getValue.
  5.         findPath("commit").findPath("commited_data").textValue();
  6.     event.resource = eventData.getValue.
  7.         findPath("commit").findPath("author_email").textValue();
  8.     event.type = eventData.getKey;
  9.     event.other = eventData.getValue.findPath("name").textValue();
  10.     transformedEvents.put(event);
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement