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
b9bf3e92
Unverified
Commit
b9bf3e92
authored
Nov 28, 2018
by
Greg Messner
Committed by
GitHub
Nov 28, 2018
Browse files
Added toString() implementation to model classes (#271)
parent
d5c5bd87
Changes
63
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/models/AbstractUser.java
View file @
b9bf3e92
package
org.gitlab4j.api.models
;
package
org.gitlab4j.api.models
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
org.gitlab4j.api.utils.JacksonJson
;
import
com.fasterxml.jackson.annotation.JsonIgnoreProperties
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
public
abstract
class
AbstractUser
<
U
extends
AbstractUser
<
U
>>
{
public
abstract
class
AbstractUser
<
U
extends
AbstractUser
<
U
>>
{
...
@@ -493,4 +495,9 @@ public abstract class AbstractUser<U extends AbstractUser<U>> {
...
@@ -493,4 +495,9 @@ public abstract class AbstractUser<U extends AbstractUser<U>> {
this
.
customAttributes
=
customAttributes
;
this
.
customAttributes
=
customAttributes
;
return
(
U
)
this
;
return
(
U
)
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Artifact.java
View file @
b9bf3e92
...
@@ -4,6 +4,7 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -4,6 +4,7 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
...
@@ -70,4 +71,9 @@ public class Artifact {
...
@@ -70,4 +71,9 @@ public class Artifact {
public
void
setFileFormat
(
String
fileFormat
)
{
public
void
setFileFormat
(
String
fileFormat
)
{
this
.
fileFormat
=
fileFormat
;
this
.
fileFormat
=
fileFormat
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/ArtifactsFile.java
View file @
b9bf3e92
...
@@ -4,6 +4,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -4,6 +4,8 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
ArtifactsFile
{
public
class
ArtifactsFile
{
...
@@ -12,18 +14,23 @@ public class ArtifactsFile {
...
@@ -12,18 +14,23 @@ public class ArtifactsFile {
private
Integer
size
;
private
Integer
size
;
public
String
getFilename
()
{
public
String
getFilename
()
{
return
filename
;
return
filename
;
}
}
public
void
setFilename
(
String
filename
)
{
public
void
setFilename
(
String
filename
)
{
this
.
filename
=
filename
;
this
.
filename
=
filename
;
}
}
public
Integer
getSize
()
{
public
Integer
getSize
()
{
return
size
;
return
size
;
}
}
public
void
setSize
(
Integer
size
)
{
public
void
setSize
(
Integer
size
)
{
this
.
size
=
size
;
this
.
size
=
size
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/AwardEmoji.java
View file @
b9bf3e92
...
@@ -7,6 +7,7 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -7,6 +7,7 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
...
@@ -100,4 +101,9 @@ public class AwardEmoji {
...
@@ -100,4 +101,9 @@ public class AwardEmoji {
public
void
setAwardableType
(
AwardableType
awardableType
)
{
public
void
setAwardableType
(
AwardableType
awardableType
)
{
this
.
awardableType
=
awardableType
;
this
.
awardableType
=
awardableType
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Branch.java
View file @
b9bf3e92
...
@@ -5,6 +5,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -5,6 +5,8 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Branch
{
public
class
Branch
{
...
@@ -98,4 +100,9 @@ public class Branch {
...
@@ -98,4 +100,9 @@ public class Branch {
this
.
isProtected
=
isProtected
;
this
.
isProtected
=
isProtected
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Changes.java
View file @
b9bf3e92
package
org.gitlab4j.api.models
;
package
org.gitlab4j.api.models
;
import
org.gitlab4j.api.utils.JacksonJson
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
...
@@ -87,4 +89,9 @@ public class Changes {
...
@@ -87,4 +89,9 @@ public class Changes {
public
void
setRenamedFile
(
Boolean
renamedFile
)
{
public
void
setRenamedFile
(
Boolean
renamedFile
)
{
this
.
renamedFile
=
renamedFile
;
this
.
renamedFile
=
renamedFile
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Comment.java
View file @
b9bf3e92
...
@@ -7,6 +7,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
...
@@ -7,6 +7,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.Constants.LineType
;
import
org.gitlab4j.api.Constants.LineType
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
...
@@ -66,4 +67,9 @@ public class Comment {
...
@@ -66,4 +67,9 @@ public class Comment {
public
void
setNote
(
String
note
)
{
public
void
setNote
(
String
note
)
{
this
.
note
=
note
;
this
.
note
=
note
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Commit.java
View file @
b9bf3e92
...
@@ -8,6 +8,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -8,6 +8,8 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Commit
{
public
class
Commit
{
...
@@ -251,4 +253,9 @@ public class Commit {
...
@@ -251,4 +253,9 @@ public class Commit {
this
.
url
=
url
;
this
.
url
=
url
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/CommitAction.java
View file @
b9bf3e92
package
org.gitlab4j.api.models
;
package
org.gitlab4j.api.models
;
import
org.gitlab4j.api.utils.JacksonJson
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
...
@@ -135,4 +136,9 @@ public class CommitAction {
...
@@ -135,4 +136,9 @@ public class CommitAction {
this
.
lastCommitId
=
lastCommitId
;
this
.
lastCommitId
=
lastCommitId
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/CommitPayload.java
View file @
b9bf3e92
...
@@ -2,6 +2,8 @@ package org.gitlab4j.api.models;
...
@@ -2,6 +2,8 @@ package org.gitlab4j.api.models;
import
java.util.List
;
import
java.util.List
;
import
org.gitlab4j.api.utils.JacksonJson
;
public
class
CommitPayload
{
public
class
CommitPayload
{
private
String
branch
;
private
String
branch
;
...
@@ -58,4 +60,9 @@ public class CommitPayload {
...
@@ -58,4 +60,9 @@ public class CommitPayload {
public
void
setAuthorName
(
String
authorName
)
{
public
void
setAuthorName
(
String
authorName
)
{
this
.
authorName
=
authorName
;
this
.
authorName
=
authorName
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/CommitRef.java
View file @
b9bf3e92
package
org.gitlab4j.api.models
;
package
org.gitlab4j.api.models
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonValue
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
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
;
/**
/**
* @author Евгений Уткин (evgeny.utkin@mediascope.net)
* @author Евгений Уткин (evgeny.utkin@mediascope.net)
*/
*/
...
@@ -54,4 +56,9 @@ public class CommitRef {
...
@@ -54,4 +56,9 @@ public class CommitRef {
public
void
setName
(
String
name
)
{
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
this
.
name
=
name
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/CommitStats.java
View file @
b9bf3e92
...
@@ -3,6 +3,8 @@ package org.gitlab4j.api.models;
...
@@ -3,6 +3,8 @@ package org.gitlab4j.api.models;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
CommitStats
{
public
class
CommitStats
{
...
@@ -33,4 +35,9 @@ public class CommitStats {
...
@@ -33,4 +35,9 @@ public class CommitStats {
public
void
setTotal
(
Integer
total
)
{
public
void
setTotal
(
Integer
total
)
{
this
.
total
=
total
;
this
.
total
=
total
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/CommitStatus.java
View file @
b9bf3e92
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
CommitStatus
{
public
class
CommitStatus
{
...
@@ -153,4 +155,9 @@ public class CommitStatus {
...
@@ -153,4 +155,9 @@ public class CommitStatus {
this
.
targetUrl
=
targetUrl
;
this
.
targetUrl
=
targetUrl
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/CompareResults.java
View file @
b9bf3e92
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
CompareResults
{
public
class
CompareResults
{
...
@@ -56,4 +58,9 @@ public class CompareResults {
...
@@ -56,4 +58,9 @@ public class CompareResults {
public
void
setCompareSameRef
(
Boolean
compareSameRef
)
{
public
void
setCompareSameRef
(
Boolean
compareSameRef
)
{
this
.
compareSameRef
=
compareSameRef
;
this
.
compareSameRef
=
compareSameRef
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/DeployKey.java
View file @
b9bf3e92
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
DeployKey
{
public
class
DeployKey
{
...
@@ -56,4 +58,9 @@ public class DeployKey {
...
@@ -56,4 +58,9 @@ public class DeployKey {
public
void
setCreatedAt
(
Date
createdAt
)
{
public
void
setCreatedAt
(
Date
createdAt
)
{
this
.
createdAt
=
createdAt
;
this
.
createdAt
=
createdAt
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Diff.java
View file @
b9bf3e92
...
@@ -5,6 +5,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -5,6 +5,8 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonInclude
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
...
@@ -94,4 +96,9 @@ public class Diff {
...
@@ -94,4 +96,9 @@ public class Diff {
public
void
setRenamedFile
(
Boolean
renamedFile
)
{
public
void
setRenamedFile
(
Boolean
renamedFile
)
{
this
.
renamedFile
=
renamedFile
;
this
.
renamedFile
=
renamedFile
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Epic.java
View file @
b9bf3e92
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Epic
{
public
class
Epic
{
...
@@ -140,4 +142,9 @@ public class Epic {
...
@@ -140,4 +142,9 @@ public class Epic {
public
void
setUpdatedAt
(
Date
updatedAt
)
{
public
void
setUpdatedAt
(
Date
updatedAt
)
{
this
.
updatedAt
=
updatedAt
;
this
.
updatedAt
=
updatedAt
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/EpicIssue.java
View file @
b9bf3e92
...
@@ -6,6 +6,8 @@ import java.util.Map;
...
@@ -6,6 +6,8 @@ import java.util.Map;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
org.gitlab4j.api.utils.JacksonJson
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
import
com.fasterxml.jackson.annotation.JsonProperty
;
...
@@ -78,4 +80,9 @@ public class EpicIssue extends Issue {
...
@@ -78,4 +80,9 @@ public class EpicIssue extends Issue {
public
void
setRelativePosition
(
Integer
relativePosition
)
{
public
void
setRelativePosition
(
Integer
relativePosition
)
{
this
.
relativePosition
=
relativePosition
;
this
.
relativePosition
=
relativePosition
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Event.java
View file @
b9bf3e92
...
@@ -8,6 +8,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
...
@@ -8,6 +8,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.Constants.TargetType
;
import
org.gitlab4j.api.Constants.TargetType
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
...
@@ -200,4 +201,9 @@ public class Event {
...
@@ -200,4 +201,9 @@ public class Event {
this
.
createdAt
=
createdAt
;
this
.
createdAt
=
createdAt
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/EventData.java
View file @
b9bf3e92
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -7,6 +7,8 @@ import javax.xml.bind.annotation.XmlAccessType;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
EventData
{
public
class
EventData
{
...
@@ -124,4 +126,9 @@ public class EventData {
...
@@ -124,4 +126,9 @@ public class EventData {
this
.
userName
=
userName
;
this
.
userName
=
userName
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
Prev
1
2
3
4
Next
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