Module modrinthapi

Record Class Project

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

public record Project(@NotNull String slug, @NotNull String title, @NotNull String description, @NotNull List<String> categories, @NotNull ProjectSide clientSide, @NotNull ProjectSide serverSide, @NotNull String body, @NotNull ProjectStatus status, @Nullable ProjectRequestedStatus requestedStatus, @Nullable List<String> additionalCategories, @Nullable String issuesUrl, @Nullable String sourceUrl, @Nullable String wikiUrl, @Nullable String discordUrl, @Nullable List<ProjectDonationUrl> donationUrls, @NotNull ProjectType projectType, @NotNull Integer downloads, @Nullable String iconUrl, @Nullable Integer color, @Nullable String threadId, @Nullable String monetizationStatus, @NotNull String id, @NotNull String team, @Nullable String bodyUrl, @Nullable ModeratorMessage moderatorMessage, @NotNull String published, @NotNull String updated, @Nullable String approved, @Nullable String queued, @NotNull Integer followers, @Nullable ProjectLicense license, @Nullable List<String> versions, @Nullable List<String> gameVersions, @Nullable List<String> loaders, @Nullable List<GalleryImage> gallery) extends Record
  • Constructor Details

    • Project

      public Project(@NotNull @NotNull String slug, @NotNull @NotNull String title, @NotNull @NotNull String description, @NotNull @NotNull List<String> categories, @NotNull @NotNull ProjectSide clientSide, @NotNull @NotNull ProjectSide serverSide, @NotNull @NotNull String body, @NotNull @NotNull ProjectStatus status, @Nullable @Nullable ProjectRequestedStatus requestedStatus, @Nullable @Nullable List<String> additionalCategories, @Nullable @Nullable String issuesUrl, @Nullable @Nullable String sourceUrl, @Nullable @Nullable String wikiUrl, @Nullable @Nullable String discordUrl, @Nullable @Nullable List<ProjectDonationUrl> donationUrls, @NotNull @NotNull ProjectType projectType, @NotNull @NotNull Integer downloads, @Nullable @Nullable String iconUrl, @Nullable @Nullable Integer color, @Nullable @Nullable String threadId, @Nullable @Nullable String monetizationStatus, @NotNull @NotNull String id, @NotNull @NotNull String team, @Deprecated @Nullable @Nullable String bodyUrl, @Deprecated @Nullable @Nullable ModeratorMessage moderatorMessage, @NotNull @NotNull String published, @NotNull @NotNull String updated, @Nullable @Nullable String approved, @Nullable @Nullable String queued, @NotNull @NotNull Integer followers, @Nullable @Nullable ProjectLicense license, @Nullable @Nullable List<String> versions, @Nullable @Nullable List<String> gameVersions, @Nullable @Nullable List<String> loaders, @Nullable @Nullable List<GalleryImage> gallery)
      Creates an instance of a Project 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
      body - the value for the body record component
      status - the value for the status record component
      requestedStatus - the value for the requestedStatus record component
      additionalCategories - the value for the additionalCategories record component
      issuesUrl - the value for the issuesUrl record component
      sourceUrl - the value for the sourceUrl record component
      wikiUrl - the value for the wikiUrl record component
      discordUrl - the value for the discordUrl record component
      donationUrls - the value for the donationUrls 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
      id - the value for the id record component
      team - the value for the team record component
      bodyUrl - the value for the bodyUrl record component
      moderatorMessage - the value for the moderatorMessage record component
      published - the value for the published record component
      updated - the value for the updated record component
      approved - the value for the approved record component
      queued - the value for the queued record component
      followers - the value for the followers record component
      license - the value for the license record component
      versions - the value for the versions record component
      gameVersions - the value for the gameVersions record component
      loaders - the value for the loaders record component
      gallery - the value for the gallery record component
  • Method Details

    • fromJson

      public static Project 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

      @NotNull public @NotNull 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
    • body

      @NotNull public @NotNull String body()
      Returns the value of the body record component.
      Returns:
      the value of the body record component
    • status

      @NotNull public @NotNull ProjectStatus status()
      Returns the value of the status record component.
      Returns:
      the value of the status record component
    • requestedStatus

      @Nullable public @Nullable ProjectRequestedStatus requestedStatus()
      Returns the value of the requestedStatus record component.
      Returns:
      the value of the requestedStatus record component
    • additionalCategories

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

      @Nullable public @Nullable String issuesUrl()
      Returns the value of the issuesUrl record component.
      Returns:
      the value of the issuesUrl record component
    • sourceUrl

      @Nullable public @Nullable String sourceUrl()
      Returns the value of the sourceUrl record component.
      Returns:
      the value of the sourceUrl record component
    • wikiUrl

      @Nullable public @Nullable String wikiUrl()
      Returns the value of the wikiUrl record component.
      Returns:
      the value of the wikiUrl record component
    • discordUrl

      @Nullable public @Nullable String discordUrl()
      Returns the value of the discordUrl record component.
      Returns:
      the value of the discordUrl record component
    • donationUrls

      @Nullable public @Nullable List<ProjectDonationUrl> donationUrls()
      Returns the value of the donationUrls record component.
      Returns:
      the value of the donationUrls 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 String monetizationStatus()
      Returns the value of the monetizationStatus record component.
      Returns:
      the value of the monetizationStatus record component
    • id

      @NotNull public @NotNull String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • team

      @NotNull public @NotNull String team()
      Returns the value of the team record component.
      Returns:
      the value of the team record component
    • bodyUrl

      @Deprecated @Nullable public @Nullable String bodyUrl()
      Deprecated.
      Returns the value of the bodyUrl record component.
      Returns:
      the value of the bodyUrl record component
    • moderatorMessage

      @Deprecated @Nullable public @Nullable ModeratorMessage moderatorMessage()
      Deprecated.
      Returns the value of the moderatorMessage record component.
      Returns:
      the value of the moderatorMessage record component
    • published

      @NotNull public @NotNull String published()
      Returns the value of the published record component.
      Returns:
      the value of the published record component
    • updated

      @NotNull public @NotNull String updated()
      Returns the value of the updated record component.
      Returns:
      the value of the updated record component
    • approved

      @Nullable public @Nullable String approved()
      Returns the value of the approved record component.
      Returns:
      the value of the approved record component
    • queued

      @Nullable public @Nullable String queued()
      Returns the value of the queued record component.
      Returns:
      the value of the queued record component
    • followers

      @NotNull public @NotNull Integer followers()
      Returns the value of the followers record component.
      Returns:
      the value of the followers record component
    • license

      @Nullable public @Nullable ProjectLicense license()
      Returns the value of the license record component.
      Returns:
      the value of the license record component
    • versions

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

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

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

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