Skip to content

Commit f58aa3c

Browse files
committed
Initial commit (#419).
1 parent 8cf96eb commit f58aa3c

File tree

3 files changed

+107
-0
lines changed

3 files changed

+107
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package org.gitlab4j.api.models;
2+
3+
import org.gitlab4j.api.utils.JacksonJson;
4+
5+
public class IssueLink {
6+
7+
private Issue sourceIssue;
8+
private Issue targetIssue;
9+
10+
public Issue getSourceIssue() {
11+
return sourceIssue;
12+
}
13+
14+
public void setSourceIssue(Issue sourceIssue) {
15+
this.sourceIssue = sourceIssue;
16+
}
17+
18+
public Issue getTargetIssue() {
19+
return targetIssue;
20+
}
21+
22+
public void setTargetIssue(Issue targetIssue) {
23+
this.targetIssue = targetIssue;
24+
}
25+
26+
@Override
27+
public String toString() {
28+
return (JacksonJson.toJsonString(this));
29+
}
30+
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"source_issue" : {
3+
"id" : 83,
4+
"iid" : 11,
5+
"project_id" : 4,
6+
"created_at" : "2016-01-07T12:44:33.959Z",
7+
"title" : "Issues with auth",
8+
"state" : "opened",
9+
"assignees" : [],
10+
"labels" : [
11+
"bug"
12+
],
13+
"author" : {
14+
"name" : "Alexandra Bashirian",
15+
"state" : "active",
16+
"web_url" : "https://gitlab.example.com/eileen.lowe",
17+
"id" : 18,
18+
"username" : "eileen.lowe"
19+
},
20+
"updated_at" : "2016-01-07T12:44:33.959Z",
21+
"subscribed" : true,
22+
"user_notes_count": 0,
23+
"web_url": "http://example.com/example/example/issues/11",
24+
"confidential": false
25+
},
26+
"target_issue" : {
27+
"id" : 84,
28+
"iid" : 14,
29+
"project_id" : 4,
30+
"created_at" : "2016-01-07T12:44:33.959Z",
31+
"title" : "Issues with auth",
32+
"state" : "opened",
33+
"assignees" : [],
34+
"labels" : [
35+
"bug"
36+
],
37+
"author" : {
38+
"name" : "Alexandra Bashirian",
39+
"state" : "active",
40+
"web_url" : "https://gitlab.example.com/eileen.lowe",
41+
"id" : 18,
42+
"username" : "eileen.lowe"
43+
},
44+
"updated_at" : "2016-01-07T12:44:33.959Z",
45+
"subscribed" : true,
46+
"user_notes_count": 0,
47+
"web_url": "http://example.com/example/example/issues/14",
48+
"confidential": false
49+
}
50+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
[
2+
{
3+
"id" : 84,
4+
"iid" : 14,
5+
"issue_link_id": 1,
6+
"project_id" : 4,
7+
"created_at" : "2016-01-07T12:44:33.959Z",
8+
"title" : "Issues with auth",
9+
"state" : "opened",
10+
"assignees" : [],
11+
"labels" : [
12+
"bug"
13+
],
14+
"author" : {
15+
"name" : "Alexandra Bashirian",
16+
"state" : "active",
17+
"web_url" : "https://gitlab.example.com/eileen.lowe",
18+
"id" : 18,
19+
"username" : "eileen.lowe"
20+
},
21+
"updated_at" : "2016-01-07T12:44:33.959Z",
22+
"subscribed" : true,
23+
"user_notes_count": 0,
24+
"web_url": "http://example.com/example/example/issues/14",
25+
"confidential": false
26+
}
27+
]

0 commit comments

Comments
 (0)