Unverified Commit 2f85b815 authored by Jérémie Bresson's avatar Jérémie Bresson Committed by GitHub
Browse files

Add "id" to Event (#960)

Fixes #883
parent 73c78a15
...@@ -8,6 +8,7 @@ import org.gitlab4j.api.utils.JacksonJson; ...@@ -8,6 +8,7 @@ import org.gitlab4j.api.utils.JacksonJson;
public class Event { public class Event {
private Long id;
private String actionName; private String actionName;
private Author author; private Author author;
private Long authorId; private Long authorId;
...@@ -24,6 +25,14 @@ public class Event { ...@@ -24,6 +25,14 @@ public class Event {
private Note note; private Note note;
private PushData pushData; private PushData pushData;
public Long getId() {
return this.id;
}
public void setId(Long id) {
this.id = id;
}
public String getActionName() { public String getActionName() {
return actionName; return actionName;
} }
......
{ {
"id": 2,
"title": "this is a title", "title": "this is a title",
"project_id": 15, "project_id": 15,
"action_name": "pushed", "action_name": "pushed",
......
[ [
{ {
"id": 8,
"title": "no title", "title": "no title",
"project_id": 15, "project_id": 15,
"action_name": "closed", "action_name": "closed",
"target_id": 830, "target_id": 830,
"target_iid": 160,
"target_type": "Issue", "target_type": "Issue",
"author_id": 1, "author_id": 1,
"target_title": "Public project search field", "target_title": "Public project search field",
"created_at": "2017-02-09T10:43:19.667Z",
"author": { "author": {
"name": "Dmitriy Zaporozhets", "name": "Dmitriy Zaporozhets",
"username": "root", "username": "root",
...@@ -18,6 +21,7 @@ ...@@ -18,6 +21,7 @@
"author_username": "root" "author_username": "root"
}, },
{ {
"id": 9,
"title": "no title 2", "title": "no title 2",
"project_id": 15, "project_id": 15,
"action_name": "pushed", "action_name": "pushed",
...@@ -42,6 +46,7 @@ ...@@ -42,6 +46,7 @@
} }
}, },
{ {
"id": 21,
"project_id": 15, "project_id": 15,
"action_name": "closed", "action_name": "closed",
"target_id": 840, "target_id": 840,
...@@ -59,10 +64,12 @@ ...@@ -59,10 +64,12 @@
"author_username": "root" "author_username": "root"
}, },
{ {
"id": 10,
"title": "no title again", "title": "no title again",
"project_id": 15, "project_id": 15,
"action_name": "commented on", "action_name": "commented on",
"target_id": 1312, "target_id": 1312,
"target_iid": 1312,
"target_type": "Note", "target_type": "Note",
"author_id": 1, "author_id": 1,
"created_at": "2015-12-04T10:33:58.089Z", "created_at": "2015-12-04T10:33:58.089Z",
...@@ -80,7 +87,8 @@ ...@@ -80,7 +87,8 @@
"created_at": "2015-12-04T10:33:56.698Z", "created_at": "2015-12-04T10:33:56.698Z",
"system": false, "system": false,
"noteable_id": 377, "noteable_id": 377,
"noteable_type": "Issue" "noteable_type": "Issue",
"noteable_iid": 377
}, },
"author": { "author": {
"name": "Dmitriy Zaporozhets", "name": "Dmitriy Zaporozhets",
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment