Class NotificationSubject
java.lang.Object
build.cursed.genapi.forgejo.model.NotificationSubject
@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 NotificationSubject
extends Object
NotificationSubject contains the notification subject (Issue/Pull/Commit)
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic NotificationSubjectCreate an instance of NotificationSubject given an JSON stringGet htmlUrlGet latestCommentHtmlUrlGet latestCommentUrlgetState()StateType issue state typegetTitle()Get titlegetType()NotifySubjectType represent type of notification subjectgetUrl()Get urlinthashCode()latestCommentHtmlUrl(String latestCommentHtmlUrl) latestCommentUrl(String latestCommentUrl) voidsetHtmlUrl(String htmlUrl) voidsetLatestCommentHtmlUrl(String latestCommentHtmlUrl) voidsetLatestCommentUrl(String latestCommentUrl) voidvoidvoidvoidtoJson()Convert an instance of NotificationSubject 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_HTML_URL
- See Also:
-
SERIALIZED_NAME_LATEST_COMMENT_HTML_URL
- See Also:
-
SERIALIZED_NAME_LATEST_COMMENT_URL
- See Also:
-
SERIALIZED_NAME_STATE
- See Also:
-
SERIALIZED_NAME_TITLE
- See Also:
-
SERIALIZED_NAME_TYPE
- See Also:
-
SERIALIZED_NAME_URL
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
NotificationSubject
public NotificationSubject()
-
-
Method Details
-
htmlUrl
-
getHtmlUrl
Get htmlUrl- Returns:
- htmlUrl
-
setHtmlUrl
-
latestCommentHtmlUrl
-
getLatestCommentHtmlUrl
Get latestCommentHtmlUrl- Returns:
- latestCommentHtmlUrl
-
setLatestCommentHtmlUrl
-
latestCommentUrl
-
getLatestCommentUrl
Get latestCommentUrl- Returns:
- latestCommentUrl
-
setLatestCommentUrl
-
state
-
getState
StateType issue state type- Returns:
- state
-
setState
-
title
-
getTitle
Get title- Returns:
- title
-
setTitle
-
type
-
getType
NotifySubjectType represent type of notification subject- Returns:
- type
-
setType
-
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 NotificationSubject
-
fromJson
Create an instance of NotificationSubject given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of NotificationSubject
- Throws:
IOException- if the JSON string is invalid with respect to NotificationSubject
-
toJson
Convert an instance of NotificationSubject to an JSON string- Returns:
- JSON string
-