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/Pipeline.java
View file @
b9bf3e92
...
@@ -6,6 +6,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -6,6 +6,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
Pipeline
{
public
class
Pipeline
{
...
@@ -145,4 +147,9 @@ public class Pipeline {
...
@@ -145,4 +147,9 @@ public class Pipeline {
public
void
setDuration
(
Integer
duration
)
{
public
void
setDuration
(
Integer
duration
)
{
this
.
duration
=
duration
;
this
.
duration
=
duration
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Project.java
View file @
b9bf3e92
...
@@ -8,6 +8,7 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -8,6 +8,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
;
...
@@ -633,4 +634,8 @@ public class Project {
...
@@ -633,4 +634,8 @@ public class Project {
return
(
project
!=
null
&&
project
.
getId
()
!=
null
);
return
(
project
!=
null
&&
project
.
getId
()
!=
null
);
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/ProjectAccess.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
ProjectAccess
{
public
class
ProjectAccess
{
...
@@ -24,4 +26,9 @@ public class ProjectAccess {
...
@@ -24,4 +26,9 @@ public class ProjectAccess {
public
void
setNotificationLevel
(
int
notificationLevel
)
{
public
void
setNotificationLevel
(
int
notificationLevel
)
{
this
.
notificationLevel
=
notificationLevel
;
this
.
notificationLevel
=
notificationLevel
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/ProjectHook.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
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
@XmlRootElement
@XmlRootElement
...
@@ -269,4 +271,9 @@ public class ProjectHook {
...
@@ -269,4 +271,9 @@ public class ProjectHook {
public
void
setWiki_page_events
(
Boolean
wikiPageEvents
)
{
public
void
setWiki_page_events
(
Boolean
wikiPageEvents
)
{
this
.
wikiPageEvents
=
wikiPageEvents
;
this
.
wikiPageEvents
=
wikiPageEvents
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
\ No newline at end of file
src/main/java/org/gitlab4j/api/models/ProjectSharedGroup.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
ProjectSharedGroup
{
public
class
ProjectSharedGroup
{
...
@@ -33,4 +35,9 @@ public class ProjectSharedGroup {
...
@@ -33,4 +35,9 @@ public class ProjectSharedGroup {
public
void
setGroupAccessLevel
(
AccessLevel
accessLevel
)
{
public
void
setGroupAccessLevel
(
AccessLevel
accessLevel
)
{
this
.
groupAccessLevel
=
accessLevel
;
this
.
groupAccessLevel
=
accessLevel
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/ProjectStatistics.java
View file @
b9bf3e92
...
@@ -4,6 +4,8 @@ package org.gitlab4j.api.models;
...
@@ -4,6 +4,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
;
/**
/**
* This class contains the sizing information from the project. To get this information,
* This class contains the sizing information from the project. To get this information,
* ProjectApi.getProject() has to be called with parameter statistics=true
* ProjectApi.getProject() has to be called with parameter statistics=true
...
@@ -48,4 +50,9 @@ public class ProjectStatistics {
...
@@ -48,4 +50,9 @@ public class ProjectStatistics {
public
void
setStorageSize
(
long
storageSize
)
{
public
void
setStorageSize
(
long
storageSize
)
{
this
.
storageSize
=
storageSize
;
this
.
storageSize
=
storageSize
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/ProjectUser.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
ProjectUser
{
public
class
ProjectUser
{
...
@@ -62,4 +64,9 @@ public class ProjectUser {
...
@@ -62,4 +64,9 @@ public class ProjectUser {
public
void
setWebUrl
(
String
webUrl
)
{
public
void
setWebUrl
(
String
webUrl
)
{
this
.
webUrl
=
webUrl
;
this
.
webUrl
=
webUrl
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/ProtectedBranch.java
View file @
b9bf3e92
package
org.gitlab4j.api.models
;
package
org.gitlab4j.api.models
;
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
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
java.util.List
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
...
@@ -42,7 +45,6 @@ public class ProtectedBranch {
...
@@ -42,7 +45,6 @@ public class ProtectedBranch {
return
(
branch
!=
null
&&
branch
.
getName
()
!=
null
);
return
(
branch
!=
null
&&
branch
.
getName
()
!=
null
);
}
}
public
ProtectedBranch
withName
(
String
name
)
{
public
ProtectedBranch
withName
(
String
name
)
{
this
.
name
=
name
;
this
.
name
=
name
;
return
this
;
return
this
;
...
@@ -57,4 +59,9 @@ public class ProtectedBranch {
...
@@ -57,4 +59,9 @@ public class ProtectedBranch {
this
.
mergeAccessLevels
=
mergeAccessLevels
;
this
.
mergeAccessLevels
=
mergeAccessLevels
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/PushData.java
View file @
b9bf3e92
...
@@ -6,6 +6,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
...
@@ -6,6 +6,7 @@ import javax.xml.bind.annotation.XmlAccessorType;
import
javax.xml.bind.annotation.XmlRootElement
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
org.gitlab4j.api.Constants.ActionType
;
import
org.gitlab4j.api.Constants.ActionType
;
import
org.gitlab4j.api.utils.JacksonJson
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
...
@@ -65,4 +66,9 @@ public class PushData {
...
@@ -65,4 +66,9 @@ public class PushData {
public
void
setRef
(
String
ref
)
{
public
void
setRef
(
String
ref
)
{
this
.
ref
=
ref
;
this
.
ref
=
ref
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/PushRules.java
View file @
b9bf3e92
...
@@ -6,6 +6,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -6,6 +6,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
PushRules
{
public
class
PushRules
{
...
@@ -53,8 +55,8 @@ public class PushRules {
...
@@ -53,8 +55,8 @@ public class PushRules {
public
PushRules
withCommitMessageRegex
(
String
commitMessageRegex
)
{
public
PushRules
withCommitMessageRegex
(
String
commitMessageRegex
)
{
this
.
commitMessageRegex
=
commitMessageRegex
;
this
.
commitMessageRegex
=
commitMessageRegex
;
return
(
this
);
return
(
this
);
}
}
public
String
getBranchNameRegex
()
{
public
String
getBranchNameRegex
()
{
return
branchNameRegex
;
return
branchNameRegex
;
...
@@ -66,8 +68,8 @@ public class PushRules {
...
@@ -66,8 +68,8 @@ public class PushRules {
public
PushRules
withBranchNameRegex
(
String
branchNameRegex
)
{
public
PushRules
withBranchNameRegex
(
String
branchNameRegex
)
{
this
.
branchNameRegex
=
branchNameRegex
;
this
.
branchNameRegex
=
branchNameRegex
;
return
(
this
);
return
(
this
);
}
}
public
Boolean
getDenyDeleteTag
()
{
public
Boolean
getDenyDeleteTag
()
{
return
denyDeleteTag
;
return
denyDeleteTag
;
...
@@ -79,8 +81,8 @@ public class PushRules {
...
@@ -79,8 +81,8 @@ public class PushRules {
public
PushRules
withDenyDeleteTag
(
Boolean
denyDeleteTag
)
{
public
PushRules
withDenyDeleteTag
(
Boolean
denyDeleteTag
)
{
this
.
denyDeleteTag
=
denyDeleteTag
;
this
.
denyDeleteTag
=
denyDeleteTag
;
return
(
this
);
return
(
this
);
}
}
public
Date
getCreatedAt
()
{
public
Date
getCreatedAt
()
{
return
createdAt
;
return
createdAt
;
...
@@ -100,8 +102,8 @@ public class PushRules {
...
@@ -100,8 +102,8 @@ public class PushRules {
public
PushRules
withMemberCheck
(
Boolean
memberCheck
)
{
public
PushRules
withMemberCheck
(
Boolean
memberCheck
)
{
this
.
memberCheck
=
memberCheck
;
this
.
memberCheck
=
memberCheck
;
return
(
this
);
return
(
this
);
}
}
public
Boolean
getPreventSecrets
()
{
public
Boolean
getPreventSecrets
()
{
return
preventSecrets
;
return
preventSecrets
;
...
@@ -113,8 +115,8 @@ public class PushRules {
...
@@ -113,8 +115,8 @@ public class PushRules {
public
PushRules
withPreventSecrets
(
Boolean
preventSecrets
)
{
public
PushRules
withPreventSecrets
(
Boolean
preventSecrets
)
{
this
.
preventSecrets
=
preventSecrets
;
this
.
preventSecrets
=
preventSecrets
;
return
(
this
);
return
(
this
);
}
}
public
String
getAuthorEmailRegex
()
{
public
String
getAuthorEmailRegex
()
{
return
authorEmailRegex
;
return
authorEmailRegex
;
...
@@ -126,8 +128,8 @@ public class PushRules {
...
@@ -126,8 +128,8 @@ public class PushRules {
public
PushRules
withAuthorEmailRegex
(
String
authorEmailRegex
)
{
public
PushRules
withAuthorEmailRegex
(
String
authorEmailRegex
)
{
this
.
authorEmailRegex
=
authorEmailRegex
;
this
.
authorEmailRegex
=
authorEmailRegex
;
return
(
this
);
return
(
this
);
}
}
public
String
getFileNameRegex
()
{
public
String
getFileNameRegex
()
{
return
fileNameRegex
;
return
fileNameRegex
;
...
@@ -139,8 +141,8 @@ public class PushRules {
...
@@ -139,8 +141,8 @@ public class PushRules {
public
PushRules
withFileNameRegex
(
String
fileNameRegex
)
{
public
PushRules
withFileNameRegex
(
String
fileNameRegex
)
{
this
.
fileNameRegex
=
fileNameRegex
;
this
.
fileNameRegex
=
fileNameRegex
;
return
(
this
);
return
(
this
);
}
}
public
Integer
getMaxFileSize
()
{
public
Integer
getMaxFileSize
()
{
return
maxFileSize
;
return
maxFileSize
;
...
@@ -152,6 +154,11 @@ public class PushRules {
...
@@ -152,6 +154,11 @@ public class PushRules {
public
PushRules
withMaxFileSize
(
Integer
maxFileSize
)
{
public
PushRules
withMaxFileSize
(
Integer
maxFileSize
)
{
this
.
maxFileSize
=
maxFileSize
;
this
.
maxFileSize
=
maxFileSize
;
return
(
this
);
return
(
this
);
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Release.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
Release
{
public
class
Release
{
...
@@ -26,4 +28,9 @@ public class Release {
...
@@ -26,4 +28,9 @@ public class Release {
public
void
setDescription
(
String
description
)
{
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
this
.
description
=
description
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Repository.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
Repository
{
public
class
Repository
{
...
@@ -44,4 +46,9 @@ public class Repository {
...
@@ -44,4 +46,9 @@ public class Repository {
public
void
setUrl
(
String
url
)
{
public
void
setUrl
(
String
url
)
{
this
.
url
=
url
;
this
.
url
=
url
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/RepositoryFile.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
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
@XmlRootElement
@XmlRootElement
...
@@ -163,4 +165,9 @@ public class RepositoryFile {
...
@@ -163,4 +165,9 @@ public class RepositoryFile {
this
.
content
=
Base64
.
getEncoder
().
encodeToString
(
byteContent
);
this
.
content
=
Base64
.
getEncoder
().
encodeToString
(
byteContent
);
encoding
=
"base64"
;
encoding
=
"base64"
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Runner.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
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
Runner
{
public
class
Runner
{
...
@@ -150,4 +152,9 @@ public class Runner {
...
@@ -150,4 +152,9 @@ public class Runner {
this
.
ipAddress
=
ipAddress
;
this
.
ipAddress
=
ipAddress
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/RunnerDetail.java
View file @
b9bf3e92
package
org.gitlab4j.api.models
;
package
org.gitlab4j.api.models
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
java.util.Date
;
import
com.fasterxml.jackson.annotation.JsonValue
;
import
java.util.List
;
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
java.util.Date
;
import
org.gitlab4j.api.utils.JacksonJson
;
import
java.util.List
;
import
org.gitlab4j.api.utils.JacksonJsonEnumHelper
;
import
com.fasterxml.jackson.annotation.JsonCreator
;
import
com.fasterxml.jackson.annotation.JsonValue
;
@XmlRootElement
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
...
@@ -166,4 +168,9 @@ public class RunnerDetail extends Runner {
...
@@ -166,4 +168,9 @@ public class RunnerDetail extends Runner {
this
.
accessLevel
=
accessLevel
;
this
.
accessLevel
=
accessLevel
;
return
this
;
return
this
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Session.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
Session
{
public
class
Session
{
...
@@ -227,4 +229,9 @@ public class Session {
...
@@ -227,4 +229,9 @@ public class Session {
public
void
setWebsiteUrl
(
String
websiteUrl
)
{
public
void
setWebsiteUrl
(
String
websiteUrl
)
{
this
.
websiteUrl
=
websiteUrl
;
this
.
websiteUrl
=
websiteUrl
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Snippet.java
View file @
b9bf3e92
...
@@ -29,6 +29,8 @@ import javax.xml.bind.annotation.XmlAccessType;
...
@@ -29,6 +29,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
Snippet
{
public
class
Snippet
{
...
@@ -156,4 +158,9 @@ public class Snippet {
...
@@ -156,4 +158,9 @@ public class Snippet {
public
void
setDescription
(
String
description
)
{
public
void
setDescription
(
String
description
)
{
this
.
description
=
description
;
this
.
description
=
description
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/SshKey.java
View file @
b9bf3e92
...
@@ -5,6 +5,8 @@ import java.util.Date;
...
@@ -5,6 +5,8 @@ import java.util.Date;
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
;
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
...
@@ -57,4 +59,9 @@ public class SshKey {
...
@@ -57,4 +59,9 @@ public class SshKey {
public
void
setUserId
(
Integer
userId
)
{
public
void
setUserId
(
Integer
userId
)
{
this
.
userId
=
userId
;
this
.
userId
=
userId
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/Tag.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
Tag
{
public
class
Tag
{
...
@@ -44,4 +46,9 @@ public class Tag {
...
@@ -44,4 +46,9 @@ public class Tag {
public
void
setRelease
(
Release
release
)
{
public
void
setRelease
(
Release
release
)
{
this
.
release
=
release
;
this
.
release
=
release
;
}
}
@Override
public
String
toString
()
{
return
(
JacksonJson
.
toJsonString
(
this
));
}
}
}
src/main/java/org/gitlab4j/api/models/TimeStats.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
TimeStats
{
public
class
TimeStats
{
...
@@ -44,4 +46,9 @@ public class TimeStats {
...
@@ -44,4 +46,9 @@ public class TimeStats {
public
void
setHumanTotalTimeSpent
(
Duration
humanTotalTimeSpent
)
{
public
void
setHumanTotalTimeSpent
(
Duration
humanTotalTimeSpent
)
{
this
.
humanTotalTimeSpent
=
humanTotalTimeSpent
;
this
.
humanTotalTimeSpent
=
humanTotalTimeSpent
;
}
}
@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