Package com.jcabi.github
Class Event.Smart
java.lang.Object
com.jcabi.github.Event.Smart
- All Implemented Interfaces:
Event,JsonReadable,Comparable<Event>
- Enclosing interface:
- Event
Smart event with extra features.
- Since:
- 0.6.1
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.Event
Event.Smart -
Field Summary
Fields inherited from interface com.jcabi.github.Event
ASSIGNED, CLOSED, DEMILESTONED, HEAD_REF_DELETED, HEAD_REF_RESTORED, LABELED, LOCKED, MENTIONED, MERGED, MILESTONED, REFERENCED, RENAMED, REOPENED, SUBSCRIBED, UNASSIGNED, UNLABELED, UNLOCKED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthor()Get its author.intWhen this issue was created.booleanDoes it have an author?jakarta.json.JsonObjectjson()Describe it in a JSON object.com.google.common.base.Optional<Label>label()Label that was added or removed in this event (if any).intnumber()Get its number.repo()Repository we're in.type()Get its type.url()Get its URL.
-
Constructor Details
-
Smart
Public ctor.- Parameters:
evt- Event
-
-
Method Details
-
hasAuthor
Does it have an author?- Returns:
- TRUE if the author exists
- Throws:
IOException- If there is any I/O problem
-
author
Get its author.- Returns:
- Author of comment
- Throws:
IOException- If there is any I/O problem
-
type
Get its type.- Returns:
- State of issue
- Throws:
IOException- If there is any I/O problem
-
url
Get its URL.- Returns:
- URL of issue
- Throws:
IOException- If there is any I/O problem
-
createdAt
When this issue was created.- Returns:
- Date of creation
- Throws:
IOException- If there is any I/O problem
-
label
Label that was added or removed in this event (if any).- Returns:
- Label that was added or removed
- Throws:
IOException- If there is any I/O problem- Since:
- 0.24
-
repo
Description copied from interface:EventRepository we're in. -
number
public int number()Description copied from interface:EventGet its number. -
json
Description copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-
compareTo
- Specified by:
compareToin interfaceComparable<Event>
-