Class 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)
    • Method Detail

      • toString

        public final String toString()
        Generate string representation.
        Overrides:
        toString in class Object
        Returns:
        String representation
      • commit

        public final Commit commit()
        Get commit object.
        Specified by:
        commit in interface Statuses
        Returns:
        Commit object
      • list

        public final Iterable<Status> list​(String ref)
        Get all status messages for a given commit.
        Specified by:
        list in interface Statuses
        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 IOException
        JSON object for this request.
        Specified by:
        json in interface JsonReadable
        Returns:
        Json object
        Throws:
        IOException - In case of I/O problems