Class TopicResponse
java.lang.Object
build.cursed.genapi.forgejo.model.TopicResponse
@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 TopicResponse
extends Object
TopicResponse for returning topics
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreated(OffsetDateTime created) booleanstatic TopicResponseCreate an instance of TopicResponse given an JSON stringGet createdgetId()Get idGet repoCountGet topicNameGet updatedinthashCode()voidsetCreated(OffsetDateTime created) voidvoidsetRepoCount(Long repoCount) voidsetTopicName(String topicName) voidsetUpdated(OffsetDateTime updated) toJson()Convert an instance of TopicResponse to an JSON stringtoString()updated(OffsetDateTime updated) static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CREATED
- See Also:
-
SERIALIZED_NAME_ID
- See Also:
-
SERIALIZED_NAME_REPO_COUNT
- See Also:
-
SERIALIZED_NAME_TOPIC_NAME
- See Also:
-
SERIALIZED_NAME_UPDATED
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
TopicResponse
public TopicResponse()
-
-
Method Details
-
created
-
getCreated
Get created- Returns:
- created
-
setCreated
-
id
-
getId
Get id- Returns:
- id
-
setId
-
repoCount
-
getRepoCount
Get repoCount- Returns:
- repoCount
-
setRepoCount
-
topicName
-
getTopicName
Get topicName- Returns:
- topicName
-
setTopicName
-
updated
-
getUpdated
Get updated- Returns:
- updated
-
setUpdated
-
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 TopicResponse
-
fromJson
Create an instance of TopicResponse given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of TopicResponse
- Throws:
IOException- if the JSON string is invalid with respect to TopicResponse
-
toJson
Convert an instance of TopicResponse to an JSON string- Returns:
- JSON string
-