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
5211cded
Commit
5211cded
authored
Apr 05, 2019
by
Greg Messner
Browse files
Initial commit (#325).
parent
ec84b49e
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/webhook/EventChanges.java
0 → 100644
View file @
5211cded
package
org.gitlab4j.api.webhook
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
EventChanges
{
private
List
<
Integer
>
updatedById
;
private
List
<
Date
>
updatedAt
;
private
Map
<
String
,
List
<
EventLabel
>>
labels
;
public
List
<
Integer
>
getUpdatedById
()
{
return
updatedById
;
}
public
void
setUpdatedById
(
List
<
Integer
>
updatedById
)
{
this
.
updatedById
=
updatedById
;
}
public
List
<
Date
>
getUpdatedAt
()
{
return
updatedAt
;
}
public
void
setUpdatedAt
(
List
<
Date
>
updatedAt
)
{
this
.
updatedAt
=
updatedAt
;
}
public
Map
<
String
,
List
<
EventLabel
>>
getLabels
()
{
return
labels
;
}
public
void
setLabels
(
Map
<
String
,
List
<
EventLabel
>>
labels
)
{
this
.
labels
=
labels
;
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
src/main/java/org/gitlab4j/api/webhook/EventLabel.java
0 → 100644
View file @
5211cded
package
org.gitlab4j.api.webhook
;
import
java.util.Date
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonValue
;
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
EventLabel
{
public
enum
LabelType
{
PROJECT_LABEL
;
private
static
JacksonJsonEnumHelper
<
LabelType
>
enumHelper
=
new
JacksonJsonEnumHelper
<>(
LabelType
.
class
,
true
,
true
);
@JsonCreator
public
static
LabelType
forValue
(
String
value
)
{
return
enumHelper
.
forValue
(
value
);
}
@JsonValue
public
String
toValue
()
{
return
(
enumHelper
.
toString
(
this
));
}
@Override
public
String
toString
()
{
return
(
enumHelper
.
toString
(
this
));
}
}
private
Integer
id
;
private
String
title
;
private
String
color
;
private
Integer
projectId
;
private
Date
createdAt
;
private
Date
updatedAt
;
private
Boolean
template
;
private
String
description
;
private
LabelType
type
;
private
Integer
groupId
;
public
Integer
getId
()
{
return
id
;
}
public
void
setId
(
Integer
id
)
{
this
.
id
=
id
;
}
public
String
getTitle
()
{
return
title
;
}
public
void
setTitle
(
String
title
)
{
this
.
title
=
title
;
}
public
String
getColor
()
{
return
color
;
}
public
void
setColor
(
String
color
)
{
this
.
color
=
color
;
}
public
Integer
getProjectId
()
{
return
projectId
;
}
public
void
setProjectId
(
Integer
projectId
)
{
this
.
projectId
=
projectId
;
}
public
Date
getCreatedAt
()
{
return
createdAt
;
}
public
void
setCreatedAt
(
Date
createdAt
)
{
this
.
createdAt
=
createdAt
;
}
public
Date
getUpdatedAt
()
{
return
updatedAt
;
}
public
void
setUpdatedAt
(
Date
updatedAt
)
{
this
.
updatedAt
=
updatedAt
;
}
public
Boolean
getTemplate
()
{
return
template
;
}
public
void
setTemplate
(
Boolean
template
)
{
this
.
template
=
template
;
}
public
String
getDescription
()
{
return
description
;
}
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
}
public
LabelType
getType
()
{
return
type
;
}
public
void
setType
(
LabelType
type
)
{
this
.
type
=
type
;
}
public
Integer
getGroupId
()
{
return
groupId
;
}
public
void
setGroupId
(
Integer
groupId
)
{
this
.
groupId
=
groupId
;
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
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