Class RtStatus

java.lang.Object
com.jcabi.github.RtStatus
All Implemented Interfaces:
JsonReadable, Status

@Immutable @Loggable(1) public final class RtStatus extends Object implements Status
GitHub commit status.
Since:
0.23
  • Constructor Details

    • RtStatus

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

    • json

      public jakarta.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