Class NotificationThread
java.lang.Object
build.cursed.genapi.forgejo.model.NotificationThread
@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 NotificationThread
extends Object
NotificationThread expose Notification on API
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic NotificationThreadCreate an instance of NotificationThread given an JSON stringgetId()Get idGet pinnedGet repositoryGet subjectGet unreadGet updatedAtgetUrl()Get urlinthashCode()repository(Repository repository) voidvoidvoidsetRepository(Repository repository) voidsetSubject(NotificationSubject subject) voidvoidsetUpdatedAt(OffsetDateTime updatedAt) voidsubject(NotificationSubject subject) toJson()Convert an instance of NotificationThread 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_ID
- See Also:
-
SERIALIZED_NAME_PINNED
- See Also:
-
SERIALIZED_NAME_REPOSITORY
- See Also:
-
SERIALIZED_NAME_SUBJECT
- See Also:
-
SERIALIZED_NAME_UNREAD
- See Also:
-
SERIALIZED_NAME_UPDATED_AT
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NotificationThread
public NotificationThread()
-
-
Method Details
-
id
-
getId
Get id- Returns:
- id
-
setId
-
pinned
-
getPinned
Get pinned- Returns:
- pinned
-
setPinned
-
repository
-
getRepository
Get repository- Returns:
- repository
-
setRepository
-
subject
-
getSubject
Get subject- Returns:
- subject
-
setSubject
-
unread
-
getUnread
Get unread- Returns:
- unread
-
setUnread
-
updatedAt
-
getUpdatedAt
Get updatedAt- Returns:
- updatedAt
-
setUpdatedAt
-
url
-
getUrl
Get url- Returns:
- url
-
setUrl
-
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 NotificationThread
-
fromJson
Create an instance of NotificationThread given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NotificationThread
- Throws:
IOException- if the JSON string is invalid with respect to NotificationThread
-
toJson
Convert an instance of NotificationThread to an JSON string- Returns:
- JSON string
-