Package com.jcabi.github
Class Status.Smart
java.lang.Object
com.jcabi.github.Status.Smart
- All Implemented Interfaces:
JsonReadable,Status
- Enclosing interface:
- Status
Smart Status with extra features.
- Since:
- 0.24
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.Status
Status.Smart, Status.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncommit()Associated commit.context()Get context.When this commit status was created.creator()Get its creator.Get description.intGet its ID number.jakarta.json.JsonObjectjson()Describe it in a JSON object.state()Get state.com.google.common.base.Optional<String>Get URL.When this commit status was updated.url()Get its URL.
-
Constructor Details
-
Smart
Public ctor.- Parameters:
stat- Status
-
-
Method Details
-
state
Get state.- Returns:
- State as enum
- Throws:
IOException- If there is an I/O problem
-
targetUrl
Get URL.- Returns:
- URL as string.
- Throws:
IOException- If there is an I/O problem
-
description
Get description.- Returns:
- Description as string.
- Throws:
IOException- If there is an I/O problem
-
context
Get context.- Returns:
- Context as string
- Throws:
IOException- If there is an I/O problem
-
createdAt
When this commit status was created.- Returns:
- Date of creation
- Throws:
IOException- If there is any I/O problem
-
updatedAt
When this commit status was updated.- Returns:
- Date of update
- Throws:
IOException- If there is any I/O problem
-
creator
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
-
url
Description copied from interface:StatusGet its URL. -
commit
Description copied from interface:StatusAssociated commit. -
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
-