Module modrinthapi

Record Class ProjectResult

java.lang.Object
java.lang.Record
ovh.paulem.modrinthapi.types.project.ProjectResult

public record ProjectResult(@NotNull String slug, @NotNull String title, @NotNull String description, @Nullable List<String> categories, @NotNull ProjectSide clientSide, @NotNull ProjectSide serverSide, @NotNull ProjectType projectType, @NotNull Integer downloads, @Nullable String iconUrl, @Nullable Integer color, @Nullable String threadId, @Nullable MonetizationStatus monetizationStatus, @NotNull String projectId, @NotNull String author, @Nullable List<String> displayCategories, @NotNull List<String> versions, @NotNull Integer follows, @NotNull String dateCreated, @NotNull String dateModified, @Nullable String latestVersion, @NotNull String license, @Nullable List<String> gallery, @Nullable String featuredGallery) extends Record
  • Constructor Details

    • ProjectResult

      public ProjectResult(@NotNull @NotNull String slug, @NotNull @NotNull String title, @NotNull @NotNull String description, @Nullable @Nullable List<String> categories, @NotNull @NotNull ProjectSide clientSide, @NotNull @NotNull ProjectSide serverSide, @NotNull @NotNull ProjectType projectType, @NotNull @NotNull Integer downloads, @Nullable @Nullable String iconUrl, @Nullable @Nullable Integer color, @Nullable @Nullable String threadId, @Nullable @Nullable MonetizationStatus monetizationStatus, @NotNull @NotNull String projectId, @NotNull @NotNull String author, @Nullable @Nullable List<String> displayCategories, @NotNull @NotNull List<String> versions, @NotNull @NotNull Integer follows, @NotNull @NotNull String dateCreated, @NotNull @NotNull String dateModified, @Nullable @Nullable String latestVersion, @NotNull @NotNull String license, @Nullable @Nullable List<String> gallery, @Nullable @Nullable String featuredGallery)
      Creates an instance of a ProjectResult record class.
      Parameters:
      slug - the value for the slug record component
      title - the value for the title record component
      description - the value for the description record component
      categories - the value for the categories record component
      clientSide - the value for the clientSide record component
      serverSide - the value for the serverSide record component
      projectType - the value for the projectType record component
      downloads - the value for the downloads record component
      iconUrl - the value for the iconUrl record component
      color - the value for the color record component
      threadId - the value for the threadId record component
      monetizationStatus - the value for the monetizationStatus record component
      projectId - the value for the projectId record component
      author - the value for the author record component
      displayCategories - the value for the displayCategories record component
      versions - the value for the versions record component
      follows - the value for the follows record component
      dateCreated - the value for the dateCreated record component
      dateModified - the value for the dateModified record component
      latestVersion - the value for the latestVersion record component
      license - the value for the license record component
      gallery - the value for the gallery record component
      featuredGallery - the value for the featuredGallery record component
  • Method Details

    • fromJson

      public static ProjectResult fromJson(com.google.gson.JsonObject hit)
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • slug

      @NotNull public @NotNull String slug()
      Returns the value of the slug record component.
      Returns:
      the value of the slug record component
    • title

      @NotNull public @NotNull String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • description

      @NotNull public @NotNull String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component
    • categories

      @Nullable public @Nullable List<String> categories()
      Returns the value of the categories record component.
      Returns:
      the value of the categories record component
    • clientSide

      @NotNull public @NotNull ProjectSide clientSide()
      Returns the value of the clientSide record component.
      Returns:
      the value of the clientSide record component
    • serverSide

      @NotNull public @NotNull ProjectSide serverSide()
      Returns the value of the serverSide record component.
      Returns:
      the value of the serverSide record component
    • projectType

      @NotNull public @NotNull ProjectType projectType()
      Returns the value of the projectType record component.
      Returns:
      the value of the projectType record component
    • downloads

      @NotNull public @NotNull Integer downloads()
      Returns the value of the downloads record component.
      Returns:
      the value of the downloads record component
    • iconUrl

      @Nullable public @Nullable String iconUrl()
      Returns the value of the iconUrl record component.
      Returns:
      the value of the iconUrl record component
    • color

      @Nullable public @Nullable Integer color()
      Returns the value of the color record component.
      Returns:
      the value of the color record component
    • threadId

      @Nullable public @Nullable String threadId()
      Returns the value of the threadId record component.
      Returns:
      the value of the threadId record component
    • monetizationStatus

      @Nullable public @Nullable MonetizationStatus monetizationStatus()
      Returns the value of the monetizationStatus record component.
      Returns:
      the value of the monetizationStatus record component
    • projectId

      @NotNull public @NotNull String projectId()
      Returns the value of the projectId record component.
      Returns:
      the value of the projectId record component
    • author

      @NotNull public @NotNull String author()
      Returns the value of the author record component.
      Returns:
      the value of the author record component
    • displayCategories

      @Nullable public @Nullable List<String> displayCategories()
      Returns the value of the displayCategories record component.
      Returns:
      the value of the displayCategories record component
    • versions

      @NotNull public @NotNull List<String> versions()
      Returns the value of the versions record component.
      Returns:
      the value of the versions record component
    • follows

      @NotNull public @NotNull Integer follows()
      Returns the value of the follows record component.
      Returns:
      the value of the follows record component
    • dateCreated

      @NotNull public @NotNull String dateCreated()
      Returns the value of the dateCreated record component.
      Returns:
      the value of the dateCreated record component
    • dateModified

      @NotNull public @NotNull String dateModified()
      Returns the value of the dateModified record component.
      Returns:
      the value of the dateModified record component
    • latestVersion

      @Nullable public @Nullable String latestVersion()
      Returns the value of the latestVersion record component.
      Returns:
      the value of the latestVersion record component
    • license

      @NotNull public @NotNull String license()
      Returns the value of the license record component.
      Returns:
      the value of the license record component
    • gallery

      @Nullable public @Nullable List<String> gallery()
      Returns the value of the gallery record component.
      Returns:
      the value of the gallery record component
    • featuredGallery

      @Nullable public @Nullable String featuredGallery()
      Returns the value of the featuredGallery record component.
      Returns:
      the value of the featuredGallery record component