Class Status.Smart

java.lang.Object
com.jcabi.github.Status.Smart
All Implemented Interfaces:
JsonReadable, Status
Enclosing interface:
Status

@Immutable @Loggable(1) public static final class Status.Smart extends Object implements Status
Smart Status with extra features.
Since:
0.24
  • Constructor Details

    • Smart

      public Smart(Status stat)
      Public ctor.
      Parameters:
      stat - Status
  • Method Details

    • state

      public Status.State state() throws IOException
      Get state.
      Returns:
      State as enum
      Throws:
      IOException - If there is an I/O problem
    • targetUrl

      public com.google.common.base.Optional<String> targetUrl() throws IOException
      Get URL.
      Returns:
      URL as string.
      Throws:
      IOException - If there is an I/O problem
    • description

      public String description() throws IOException
      Get description.
      Returns:
      Description as string.
      Throws:
      IOException - If there is an I/O problem
    • context

      public String context() throws IOException
      Get context.
      Returns:
      Context as string
      Throws:
      IOException - If there is an I/O problem
    • createdAt

      public Date createdAt() throws IOException
      When this commit status was created.
      Returns:
      Date of creation
      Throws:
      IOException - If there is any I/O problem
    • updatedAt

      public Date updatedAt() throws IOException
      When this commit status was updated.
      Returns:
      Date of update
      Throws:
      IOException - If there is any I/O problem
    • creator

      public User creator() throws IOException
      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: 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
    • json

      public jakarta.json.JsonObject json() throws IOException
      Description copied from interface: JsonReadable
      Describe it in a JSON object.
      Specified by:
      json in interface JsonReadable
      Returns:
      JSON object
      Throws:
      IOException - If there is any I/O problem