Package com.jcabi.github.safe
Class SfComment
java.lang.Object
com.jcabi.github.safe.SfComment
- All Implemented Interfaces:
Comment,JsonPatchable,JsonReadable,Comparable<Comment>
Safe comment.
- Since:
- 0.34
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.jcabi.github.Comment
Comment.Smart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintissue()The issue it's in.jakarta.json.JsonObjectjson()Describe it in a JSON object.longnumber()Number.voidpatch(jakarta.json.JsonObject json) Patch using this JSON object.voidAdds the reaction to the comment.List the reactions of the comment.voidremove()Delete the comment.toString()
-
Constructor Details
-
SfComment
Public ctor.- Parameters:
cmt- The original comment
-
-
Method Details
-
toString
-
issue
Description copied from interface:CommentThe issue it's in. -
number
public long number()Description copied from interface:CommentNumber. -
remove
Description copied from interface:CommentDelete the comment.- Specified by:
removein interfaceComment- Throws:
IOException- If there is any I/O problem- See Also:
-
react
Description copied from interface:CommentAdds the reaction to the comment.- Specified by:
reactin interfaceComment- Parameters:
reaction- Reaction to be added.- Throws:
IOException- In case something goes wrong.
-
reactions
Description copied from interface:CommentList the reactions of the comment. -
compareTo
- Specified by:
compareToin interfaceComparable<Comment>
-
patch
Description copied from interface:JsonPatchablePatch using this JSON object.- Specified by:
patchin interfaceJsonPatchable- Parameters:
json- JSON object- Throws:
IOException- If there is any I/O problem
-
json
Description copied from interface:JsonReadableDescribe it in a JSON object.- Specified by:
jsonin interfaceJsonReadable- Returns:
- JSON object
- Throws:
IOException- If there is any I/O problem
-