Class Reaction
java.lang.Object
build.cursed.genapi.forgejo.model.Reaction
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2026-09-28T10:48:29.723777+02:00[Europe/Stockholm]",
comments="Generator version: 7.21.0")
public class Reaction
extends Object
Reaction contain one reaction
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatedAt(OffsetDateTime createdAt) booleanstatic ReactionCreate an instance of Reaction given an JSON stringGet contentGet createdAtgetUser()Get userinthashCode()voidsetContent(String content) voidsetCreatedAt(OffsetDateTime createdAt) voidtoJson()Convert an instance of Reaction to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CONTENT
- See Also:
-
SERIALIZED_NAME_CREATED_AT
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
Reaction
public Reaction()
-
-
Method Details
-
content
-
getContent
Get content- Returns:
- content
-
setContent
-
createdAt
-
getCreatedAt
Get createdAt- Returns:
- createdAt
-
setCreatedAt
-
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 Reaction
-
fromJson
Create an instance of Reaction given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of Reaction
- Throws:
IOException- if the JSON string is invalid with respect to Reaction
-
toJson
Convert an instance of Reaction to an JSON string- Returns:
- JSON string
-