Package com.jcabi.github
Class RtStatuses
- java.lang.Object
-
- com.jcabi.github.RtStatuses
-
- All Implemented Interfaces:
JsonReadable,Statuses
public class RtStatuses extends Object implements Statuses
Github statuses for a given commit.- Since:
- 0.23
- Version:
- $Id: a4ece406208a0ade5d715390e4605328b62f48f3 $
- Author:
- Marcin Cylke (maracin.cylke+github@gmail.com)
- Suppressed Checkstyle violations:
- MultipleStringLiteralsCheck (500 lines)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.jcabi.github.Statuses
Statuses.StatusCreate
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Commitcommit()Get commit object.Statuscreate(Statuses.StatusCreate status)Create new status for a commit.javax.json.JsonObjectjson()JSON object for this request.Iterable<Status>list(String ref)Get all status messages for a given commit.StringtoString()Generate string representation.
-
-
-
Method Detail
-
toString
public final String toString()
Generate string representation.
-
commit
public final Commit commit()
Get commit object.
-
create
public final Status create(Statuses.StatusCreate status) throws IOException
Create new status for a commit.- Specified by:
createin interfaceStatuses- Parameters:
status- Add this status- Returns:
- Returned status
- Throws:
IOException- In case of any I/O problems- See Also:
- Create a Status
-
list
public final Iterable<Status> list(String ref)
Get all status messages for a given commit.- Specified by:
listin interfaceStatuses- Parameters:
ref- It can be a SHA, a branch name, or a tag name.- Returns:
- Full list of statuses for this commit.
- See Also:
- List Statuses for a specific Ref
- To do:
- #1126:30min Implement this method which gets all status messages for a given commit.
-
json
public final javax.json.JsonObject json() throws IOExceptionJSON object for this request.- Specified by:
jsonin interfaceJsonReadable- Returns:
- Json object
- Throws:
IOException- In case of I/O problems
-
-