Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
14babb08
Commit
14babb08
authored
Mar 12, 2014
by
Greg Messner
Browse files
Initial check-in.
parent
e86a57b5
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/messners/gitlab/api/models/ProjectHook.java
0 → 100644
View file @
14babb08
package
com.messners.gitlab.api.models
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
ProjectHook
{
private
String
createdAt
;
private
Integer
id
;
private
Boolean
issuesEvents
;
private
Boolean
mergeRequestEvents
;
private
Integer
projectId
;
private
Boolean
pushEvents
;
private
String
url
;
public
String
getCreatedAt
()
{
return
this
.
createdAt
;
}
public
void
setCreatedAt
(
String
createdAt
)
{
this
.
createdAt
=
createdAt
;
}
public
Integer
getId
()
{
return
this
.
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
Boolean
getIssuesEvents
()
{
return
this
.
issuesEvents
;
}
public
void
setIssuesEvents
(
Boolean
issuesEvents
)
{
this
.
issuesEvents
=
issuesEvents
;
}
public
Boolean
getMergeRequestEvents
()
{
return
this
.
mergeRequestEvents
;
}
public
void
setMergeRequestEvents
(
Boolean
mergeRequestEvents
)
{
this
.
mergeRequestEvents
=
mergeRequestEvents
;
}
public
Integer
getProjectId
()
{
return
this
.
projectId
;
}
public
void
setProjectId
(
Integer
projectId
)
{
this
.
projectId
=
projectId
;
}
public
Boolean
getPushEvents
()
{
return
this
.
pushEvents
;
}
public
void
setPushEvents
(
Boolean
pushEvents
)
{
this
.
pushEvents
=
pushEvents
;
}
public
String
getUrl
()
{
return
this
.
url
;
}
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
}
}
src/test/resources/com/messners/gitlab/api/hook.json
0 → 100644
View file @
14babb08
{
"id"
:
1
,
"url"
:
"http://example.com/hook"
,
"project_id"
:
3
,
"push_events"
:
"true"
,
"issues_events"
:
"true"
,
"merge_requests_events"
:
"true"
,
"created_at"
:
"2012-10-12T17:04:47Z"
}
\ No newline at end of file
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment