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
6028d80e
Commit
6028d80e
authored
Apr 22, 2018
by
Greg Messner
Browse files
Initial commit.
parent
fb1f0a9f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/services/HipChatService.java
0 → 100644
View file @
6028d80e
package
org.gitlab4j.api.services
;
import
javax.xml.bind.annotation.XmlAccessType
;
import
javax.xml.bind.annotation.XmlAccessorType
;
import
javax.xml.bind.annotation.XmlRootElement
;
import
com.fasterxml.jackson.annotation.JsonIgnore
;
@XmlRootElement
@XmlAccessorType
(
XmlAccessType
.
FIELD
)
public
class
HipChatService
extends
NotificationService
{
public
static
final
String
TOKEN_PROP
=
"token"
;
public
static
final
String
COLOR_PROP
=
"color"
;
public
static
final
String
NOTIFY_PROP
=
"notify"
;
public
static
final
String
ROOM_PROP
=
"room"
;
public
static
final
String
API_VERSION_PROP
=
"api_version"
;
public
static
final
String
SERVER_PROP
=
"server"
;
public
static
final
String
NOTIFY_ONLY_BROKEN_PIPELINES_PROP
=
"notify_only_broken_pipelines"
;
public
HipChatService
withPushEvents
(
Boolean
pushEvents
)
{
return
withPushEvents
(
pushEvents
,
this
);
}
public
HipChatService
withIssuesEvents
(
Boolean
issuesEvents
)
{
return
withIssuesEvents
(
issuesEvents
,
this
);
}
public
HipChatService
withConfidentialIssuesEvents
(
Boolean
confidentialIssuesEvents
)
{
return
withConfidentialIssuesEvents
(
confidentialIssuesEvents
,
this
);
}
public
HipChatService
withMergeRequestsEvents
(
Boolean
mergeRequestsEvents
)
{
return
withMergeRequestsEvents
(
mergeRequestsEvents
,
this
);
}
public
HipChatService
withTagPushEvents
(
Boolean
tagPushEvents
)
{
return
withTagPushEvents
(
tagPushEvents
,
this
);
}
public
HipChatService
withNoteEvents
(
Boolean
noteEvents
)
{
return
withNoteEvents
(
noteEvents
,
this
);
}
public
HipChatService
withConfidentialNoteEvents
(
Boolean
confidentialNoteEvents
)
{
return
withConfidentialNoteEvents
(
confidentialNoteEvents
,
this
);
}
public
HipChatService
withPipelineEvents
(
Boolean
pipelineEvents
)
{
return
withPipelineEvents
(
pipelineEvents
,
this
);
}
public
HipChatService
withWikiPageEvents
(
Boolean
wikiPageEvents
)
{
return
withWikiPageEvents
(
wikiPageEvents
,
this
);
}
public
HipChatService
withJobEvents
(
Boolean
jobEvents
)
{
return
withPipelineEvents
(
jobEvents
,
this
);
}
public
String
getToken
()
{
return
((
String
)
getProperty
(
TOKEN_PROP
));
}
public
void
setToken
(
String
token
)
{
setProperty
(
TOKEN_PROP
,
token
);
}
public
HipChatService
withToken
(
String
token
)
{
setToken
(
token
);
return
(
this
);
}
public
String
getColor
()
{
return
((
String
)
getProperty
(
COLOR_PROP
));
}
public
void
setColor
(
String
color
)
{
setProperty
(
COLOR_PROP
,
color
);
}
public
HipChatService
withColor
(
String
color
)
{
setColor
(
color
);
return
(
this
);
}
public
Boolean
getNotify
()
{
return
(
getProperty
(
NOTIFY_PROP
,
(
Boolean
)
null
));
}
public
void
setNotify
(
Boolean
notify
)
{
setProperty
(
NOTIFY_PROP
,
notify
);
}
public
HipChatService
withNotify
(
Boolean
notify
)
{
setNotify
(
notify
);
return
(
this
);
}
public
String
getRoom
()
{
return
((
String
)
getProperty
(
ROOM_PROP
));
}
public
void
setRoom
(
String
room
)
{
setProperty
(
ROOM_PROP
,
room
);
}
public
HipChatService
withRoom
(
String
room
)
{
setRoom
(
room
);
return
(
this
);
}
public
String
getApiVersion
()
{
return
((
String
)
getProperty
(
API_VERSION_PROP
));
}
public
void
setApiVersion
(
String
apiVersion
)
{
setProperty
(
API_VERSION_PROP
,
apiVersion
);
}
public
HipChatService
withApiVersion
(
String
apiVersion
)
{
setApiVersion
(
apiVersion
);
return
(
this
);
}
public
String
getServer
()
{
return
((
String
)
getProperty
(
SERVER_PROP
));
}
public
void
setServer
(
String
server
)
{
setProperty
(
SERVER_PROP
,
server
);
}
public
HipChatService
withServer
(
String
server
)
{
setServer
(
server
);
return
(
this
);
}
@JsonIgnore
public
Boolean
getNotifyOnlyBrokenPipelines
()
{
return
((
Boolean
)
getProperty
(
NOTIFY_ONLY_BROKEN_PIPELINES_PROP
,
Boolean
.
FALSE
));
}
public
void
setNotifyOnlyBrokenPipelines
(
Boolean
notifyOnlyBrokenPipelines
)
{
setProperty
(
NOTIFY_ONLY_BROKEN_PIPELINES_PROP
,
notifyOnlyBrokenPipelines
);
}
public
HipChatService
withNotifyOnlyBrokenPipelines
(
Boolean
notifyOnlyBrokenPipelines
)
{
setNotifyOnlyBrokenPipelines
(
notifyOnlyBrokenPipelines
);
return
(
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