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
  • Field Details

  • Constructor Details

    • GeneralUISettings

      public GeneralUISettings()
  • Method Details

    • allowedReactions

      public GeneralUISettings allowedReactions(@Nullable List<String> allowedReactions)
    • addAllowedReactionsItem

      public GeneralUISettings addAllowedReactionsItem(String allowedReactionsItem)
    • getAllowedReactions

      @Nullable public List<String> getAllowedReactions()
      Get allowedReactions
      Returns:
      allowedReactions
    • setAllowedReactions

      public void setAllowedReactions(@Nullable List<String> allowedReactions)
    • customEmojis

      public GeneralUISettings customEmojis(@Nullable List<String> customEmojis)
    • addCustomEmojisItem

      public GeneralUISettings addCustomEmojisItem(String customEmojisItem)
    • getCustomEmojis

      @Nullable public List<String> getCustomEmojis()
      Get customEmojis
      Returns:
      customEmojis
    • setCustomEmojis

      public void setCustomEmojis(@Nullable List<String> customEmojis)
    • defaultTheme

      public GeneralUISettings defaultTheme(@Nullable String defaultTheme)
    • getDefaultTheme

      @Nullable public String getDefaultTheme()
      Get defaultTheme
      Returns:
      defaultTheme
    • setDefaultTheme

      public void setDefaultTheme(@Nullable String defaultTheme)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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

      public static GeneralUISettings fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of GeneralUISettings to an JSON string
      Returns:
      JSON string