Class GeneralUISettings
java.lang.Object
build.cursed.genapi.forgejo.model.GeneralUISettings
@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 GeneralUISettings
extends Object
GeneralUISettings contains global ui settings exposed by API
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllowedReactionsItem(String allowedReactionsItem) addCustomEmojisItem(String customEmojisItem) allowedReactions(List<String> allowedReactions) customEmojis(List<String> customEmojis) defaultTheme(String defaultTheme) booleanstatic GeneralUISettingsCreate an instance of GeneralUISettings given an JSON stringGet allowedReactionsGet customEmojisGet defaultThemeinthashCode()voidsetAllowedReactions(List<String> allowedReactions) voidsetCustomEmojis(List<String> customEmojis) voidsetDefaultTheme(String defaultTheme) toJson()Convert an instance of GeneralUISettings 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_ALLOWED_REACTIONS
- See Also:
-
SERIALIZED_NAME_CUSTOM_EMOJIS
- See Also:
-
SERIALIZED_NAME_DEFAULT_THEME
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
GeneralUISettings
public GeneralUISettings()
-
-
Method Details
-
allowedReactions
-
addAllowedReactionsItem
-
getAllowedReactions
Get allowedReactions- Returns:
- allowedReactions
-
setAllowedReactions
-
customEmojis
-
addCustomEmojisItem
-
getCustomEmojis
Get customEmojis- Returns:
- customEmojis
-
setCustomEmojis
-
defaultTheme
-
getDefaultTheme
Get defaultTheme- Returns:
- defaultTheme
-
setDefaultTheme
-
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 GeneralUISettings
-
fromJson
Create an instance of GeneralUISettings given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of GeneralUISettings
- Throws:
IOException- if the JSON string is invalid with respect to GeneralUISettings
-
toJson
Convert an instance of GeneralUISettings to an JSON string- Returns:
- JSON string
-