diff --git a/src/main/java/org/gitlab4j/api/models/Event.java b/src/main/java/org/gitlab4j/api/models/Event.java index 8ca23342f87f65e51479e2efa747f1fd73a49f46..904be6823cae06185e5770a3e5e689e432b0c9ce 100644 --- a/src/main/java/org/gitlab4j/api/models/Event.java +++ b/src/main/java/org/gitlab4j/api/models/Event.java @@ -8,6 +8,7 @@ import org.gitlab4j.api.utils.JacksonJson; public class Event { + private Long id; private String actionName; private Author author; private Long authorId; @@ -24,6 +25,14 @@ public class Event { private Note note; private PushData pushData; + public Long getId() { + return this.id; + } + + public void setId(Long id) { + this.id = id; + } + public String getActionName() { return actionName; } diff --git a/src/test/resources/org/gitlab4j/api/event.json b/src/test/resources/org/gitlab4j/api/event.json index 8888488e7788a37f111d3ee319a53a991f5f0830..06d44cc17788ac66baa54fe97f8e3bffc122de1c 100644 --- a/src/test/resources/org/gitlab4j/api/event.json +++ b/src/test/resources/org/gitlab4j/api/event.json @@ -1,4 +1,5 @@ { + "id": 2, "title": "this is a title", "project_id": 15, "action_name": "pushed", diff --git a/src/test/resources/org/gitlab4j/api/events.json b/src/test/resources/org/gitlab4j/api/events.json index cea8cb9ff70d146c835dcd96f929de0c417a979d..240543087686370ca48062407d3069df2d7bb583 100644 --- a/src/test/resources/org/gitlab4j/api/events.json +++ b/src/test/resources/org/gitlab4j/api/events.json @@ -1,12 +1,15 @@ [ { + "id": 8, "title": "no title", "project_id": 15, "action_name": "closed", "target_id": 830, + "target_iid": 160, "target_type": "Issue", "author_id": 1, "target_title": "Public project search field", + "created_at": "2017-02-09T10:43:19.667Z", "author": { "name": "Dmitriy Zaporozhets", "username": "root", @@ -18,6 +21,7 @@ "author_username": "root" }, { + "id": 9, "title": "no title 2", "project_id": 15, "action_name": "pushed", @@ -42,6 +46,7 @@ } }, { + "id": 21, "project_id": 15, "action_name": "closed", "target_id": 840, @@ -59,10 +64,12 @@ "author_username": "root" }, { + "id": 10, "title": "no title again", "project_id": 15, "action_name": "commented on", "target_id": 1312, + "target_iid": 1312, "target_type": "Note", "author_id": 1, "created_at": "2015-12-04T10:33:58.089Z", @@ -80,7 +87,8 @@ "created_at": "2015-12-04T10:33:56.698Z", "system": false, "noteable_id": 377, - "noteable_type": "Issue" + "noteable_type": "Issue", + "noteable_iid": 377 }, "author": { "name": "Dmitriy Zaporozhets",