Package com.jcabi.github
Class Status.Smart
- java.lang.Object
-
- com.jcabi.github.Status.Smart
-
- All Implemented Interfaces:
JsonReadable
,Status
- Enclosing interface:
- Status
@Immutable @Loggable(1) public static final class Status.Smart extends Object implements Status
Smart Status with extra features.- Since:
- 0.24
- Version:
- $Id: dc09e47d3c682cb3b814319dd3f6653153de402b $
- Author:
- Chris Rebert (github@chrisrebert.com)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Status
Status.Smart, Status.State
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Commit
commit()
Associated commit.String
context()
Get context.Date
createdAt()
When this commit status was created.User
creator()
Get its creator.String
description()
Get description.int
identifier()
Get its ID number.javax.json.JsonObject
json()
Describe it in a JSON object.Status.State
state()
Get state.com.google.common.base.Optional<String>
targetUrl()
Get URL.Date
updatedAt()
When this commit status was updated.String
url()
Get its URL.
-
-
-
Constructor Detail
-
Smart
public Smart(Status stat)
Public ctor.- Parameters:
stat
- Status
-
-
Method Detail
-
state
public Status.State state() throws IOException
Get state.- Returns:
- State as enum
- Throws:
IOException
- If there is an I/O problem
-
targetUrl
public com.google.common.base.Optional<String> targetUrl() throws IOException
Get URL.- Returns:
- URL as string.
- Throws:
IOException
- If there is an I/O problem
-
description
public String description() throws IOException
Get description.- Returns:
- Description as string.
- Throws:
IOException
- If there is an I/O problem
-
context
public String context() throws IOException
Get context.- Returns:
- Context as string
- Throws:
IOException
- If there is an I/O problem
-
createdAt
public Date createdAt() throws IOException
When this commit status was created.- Returns:
- Date of creation
- Throws:
IOException
- If there is any I/O problem
-
updatedAt
public Date updatedAt() throws IOException
When this commit status was updated.- Returns:
- Date of update
- Throws:
IOException
- If there is any I/O problem
-
creator
public User creator() throws IOException
Get its creator.- Returns:
- Creator of the commit status
- Throws:
IOException
- If there is any I/O problem
-
identifier
public int identifier()
Description copied from interface:Status
Get its ID number.- Specified by:
identifier
in interfaceStatus
- Returns:
- ID number
-
json
public javax.json.JsonObject json() throws IOException
Description copied from interface:JsonReadable
Describe it in a JSON object.- Specified by:
json
in interfaceJsonReadable
- Returns:
- JSON object
- Throws:
IOException
- If there is any I/O problem
-
-