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 Commitcommit()Associated commit.Stringcontext()Get context.DatecreatedAt()When this commit status was created.Usercreator()Get its creator.Stringdescription()Get description.intidentifier()Get its ID number.javax.json.JsonObjectjson()Describe it in a JSON object.Status.Statestate()Get state.com.google.common.base.Optional<String>targetUrl()Get URL.DateupdatedAt()When this commit status was updated.Stringurl()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:StatusGet its ID number.- Specified by:
identifierin interfaceStatus- Returns:
- ID number
-
json
public javax.json.JsonObject json() throws IOExceptionDescription 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
-
-