Class SfComment

    • Constructor Detail

      • SfComment

        public SfComment​(Comment cmt)
        Public ctor.
        Parameters:
        cmt - The original comment
    • Method Detail

      • 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)
                   throws IOException
        Description copied from interface: Comment
        Adds the reaction to the comment.
        Specified by:
        react in interface Comment
        Parameters:
        reaction - Reaction to be added.
        Throws:
        IOException - In case something goes wrong.
      • reactions

        public Iterable<Reaction> reactions()
        Description copied from interface: Comment
        List the reactions of the comment.
        Specified by:
        reactions in interface Comment
        Returns:
        Comment reactions.
      • 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
      • 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