Class Comment
java.lang.Object
build.cursed.genapi.forgejo.model.Comment
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T16:24:31.414706+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class Comment
extends Object
Comment represents a comment on a commit or issue
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAssetsItem(Attachment assetsItem) assets(List<Attachment> assets) createdAt(OffsetDateTime createdAt) booleanstatic CommentCreate an instance of Comment given an JSON stringThe attachments to the commentgetBody()The body of the commentThe time of the comment's creationThe HTML URL of the commentgetId()The identifier of the commentThe HTML URL of the issue if the comment is posted on an issue, else empty stringThe original author that posted the comment if it was not posted locally, else empty stringThe ID of the original author that posted the comment if it was not posted locally, else 0The HTML URL of the pull request if the comment is posted on a pull request, else empty stringThe time of the comment's updategetUser()Get userinthashCode()originalAuthor(String originalAuthor) originalAuthorId(Long originalAuthorId) pullRequestUrl(String pullRequestUrl) voidsetAssets(List<Attachment> assets) voidvoidsetCreatedAt(OffsetDateTime createdAt) voidsetHtmlUrl(String htmlUrl) voidvoidsetIssueUrl(String issueUrl) voidsetOriginalAuthor(String originalAuthor) voidsetOriginalAuthorId(Long originalAuthorId) voidsetPullRequestUrl(String pullRequestUrl) voidsetUpdatedAt(OffsetDateTime updatedAt) voidtoJson()Convert an instance of Comment to an JSON stringtoString()updatedAt(OffsetDateTime updatedAt) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_ASSETS
- See Also:
-
SERIALIZED_NAME_BODY
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_HTML_URL
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_ISSUE_URL
- See Also:
-
SERIALIZED_NAME_ORIGINAL_AUTHOR
- See Also:
-
SERIALIZED_NAME_ORIGINAL_AUTHOR_ID
- See Also:
-
SERIALIZED_NAME_PULL_REQUEST_URL
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Comment
public Comment()
-
-
Method Details
-
assets
-
addAssetsItem
-
getAssets
The attachments to the comment- Returns:
- assets
-
setAssets
-
body
-
getBody
The body of the comment- Returns:
- body
-
setBody
-
createdAt
-
getCreatedAt
The time of the comment's creation- Returns:
- createdAt
-
setCreatedAt
-
htmlUrl
-
getHtmlUrl
The HTML URL of the comment- Returns:
- htmlUrl
-
setHtmlUrl
-
id
-
getId
The identifier of the comment- Returns:
- id
-
setId
-
issueUrl
-
getIssueUrl
The HTML URL of the issue if the comment is posted on an issue, else empty string- Returns:
- issueUrl
-
setIssueUrl
-
originalAuthor
-
getOriginalAuthor
The original author that posted the comment if it was not posted locally, else empty string- Returns:
- originalAuthor
-
setOriginalAuthor
-
originalAuthorId
-
getOriginalAuthorId
The ID of the original author that posted the comment if it was not posted locally, else 0- Returns:
- originalAuthorId
-
setOriginalAuthorId
-
pullRequestUrl
-
getPullRequestUrl
The HTML URL of the pull request if the comment is posted on a pull request, else empty string- Returns:
- pullRequestUrl
-
setPullRequestUrl
-
updatedAt
-
getUpdatedAt
The time of the comment's update- Returns:
- updatedAt
-
setUpdatedAt
-
user
-
getUser
Get user- Returns:
- user
-
setUser
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to Comment
-
fromJson
Create an instance of Comment given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Comment
- Throws:
IOException- if the JSON string is invalid with respect to Comment
-
toJson
Convert an instance of Comment to an JSON string- Returns:
- JSON string
-