@Immutable @Loggable(value=1) public static final class Event.Smart extends Object implements Event
Event.Smart
ASSIGNED, CLOSED, DEMILESTONED, HEAD_REF_DELETED, HEAD_REF_RESTORED, LABELED, LOCKED, MENTIONED, MERGED, MILESTONED, REFERENCED, RENAMED, REOPENED, SUBSCRIBED, UNASSIGNED, UNLABELED, UNLOCKED
Modifier and Type | Method and Description |
---|---|
User |
author()
Get its author.
|
int |
compareTo(Event obj) |
Date |
createdAt()
When this issue was created.
|
boolean |
hasAuthor()
Does it have an author?
|
javax.json.JsonObject |
json()
Describe it in a JSON object.
|
com.google.common.base.Optional<Label> |
label()
Label that was added or removed in this event (if any).
|
int |
number()
Get its number.
|
Repo |
repo()
Repository we're in.
|
String |
type()
Get its type.
|
URL |
url()
Get its URL.
|
public Smart(Event evt)
evt
- Eventpublic boolean hasAuthor() throws IOException
IOException
- If there is any I/O problempublic User author() throws IOException
IOException
- If there is any I/O problempublic String type() throws IOException
IOException
- If there is any I/O problempublic URL url() throws IOException
IOException
- If there is any I/O problempublic Date createdAt() throws IOException
IOException
- If there is any I/O problempublic com.google.common.base.Optional<Label> label() throws IOException
IOException
- If there is any I/O problempublic int number()
Event
public javax.json.JsonObject json() throws IOException
JsonReadable
json
in interface JsonReadable
IOException
- If there is any I/O problempublic int compareTo(Event obj)
compareTo
in interface Comparable<Event>
Copyright © 2012–2018 jcabi.com. All rights reserved.