Class RtStatus

  • All Implemented Interfaces:
    JsonReadable, Status

    @Immutable
    @Loggable(1)
    public final class RtStatus
    extends Object
    implements Status
    Github commit status.
    Since:
    0.23
    Version:
    $Id: 5b1c2debe08109717994a97d161307dfe2d1a413 $
    Author:
    Marcin Cylke (maracin.cylke+github@gmail.com), Chris Rebert (github@chrisrebert.com)
    • Constructor Detail

      • RtStatus

        public RtStatus​(Commit cmt,
                        javax.json.JsonObject obj)
        Public ctor.
        Parameters:
        cmt - Associated commit
        obj - Status JSON object
    • Method Detail

      • json

        public javax.json.JsonObject json()
        Description copied from interface: JsonReadable
        Describe it in a JSON object.
        Specified by:
        json in interface JsonReadable
        Returns:
        JSON object
      • identifier

        public int identifier()
        Description copied from interface: Status
        Get its ID number.
        Specified by:
        identifier in interface Status
        Returns:
        ID number
      • url

        public String url()
        Description copied from interface: Status
        Get its URL.
        Specified by:
        url in interface Status
        Returns:
        URL
      • commit

        public Commit commit()
        Description copied from interface: Status
        Associated commit.
        Specified by:
        commit in interface Status
        Returns:
        Commit