Class Comment.Smart

    • Constructor Detail

      • Smart

        public Smart​(Comment cmt)
        Public ctor.
        Parameters:
        cmt - Comment
    • Method Detail

      • author

        public User author()
                    throws IOException
        Get its author.
        Returns:
        Author of comment
        Throws:
        IOException - If there is any I/O problem
      • body

        public void body​(String text)
                  throws IOException
        Change comment body.
        Parameters:
        text - Body of comment
        Throws:
        IOException - If there is any I/O problem
      • url

        public URL url()
                throws IOException
        Get its URL.
        Returns:
        URL of comment
        Throws:
        IOException - If there is any I/O problem
      • createdAt

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

        public Date updatedAt()
                       throws IOException
        When this comment was updated last time.
        Returns:
        Date of update
        Throws:
        IOException - If there is any I/O problem
      • issue

        public Issue issue()
        Description copied from interface: Comment
        The issue it's in.
        Specified by:
        issue in interface Comment
        Returns:
        Owner of the comment
      • number

        public int number()
        Description copied from interface: Comment
        Number.
        Specified by:
        number in interface Comment
        Returns:
        Comment number
      • react

        public void react​(Reaction reaction)
        Description copied from interface: Comment
        Adds the reaction to the comment.
        Specified by:
        react in interface Comment
        Parameters:
        reaction - Reaction to be added.
      • reactions

        public Collection<Reaction> reactions()
        Description copied from interface: Comment
        List the reactions of the comment.
        Specified by:
        reactions in interface Comment
        Returns:
        Comment reactions.
      • json

        public javax.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
      • patch

        public void patch​(javax.json.JsonObject json)
                   throws IOException
        Description copied from interface: JsonPatchable
        Patch using this JSON object.
        Specified by:
        patch in interface JsonPatchable
        Parameters:
        json - JSON object
        Throws:
        IOException - If there is any I/O problem