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 Summary
ConstructorsConstructorDescriptionProject(@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) Creates an instance of aProjectrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionalCategoriesrecord component.@Nullable Stringapproved()Returns the value of theapprovedrecord component.@NotNull Stringbody()Returns the value of thebodyrecord component.@Nullable StringbodyUrl()Deprecated.Returns the value of thecategoriesrecord component.@NotNull ProjectSideReturns the value of theclientSiderecord component.@Nullable Integercolor()Returns the value of thecolorrecord component.@NotNull StringReturns the value of thedescriptionrecord component.@Nullable StringReturns the value of thediscordUrlrecord component.@Nullable List<ProjectDonationUrl>Returns the value of thedonationUrlsrecord component.@NotNull IntegerReturns the value of thedownloadsrecord component.final booleanIndicates whether some other object is "equal to" this one.@NotNull IntegerReturns the value of thefollowersrecord component.static ProjectfromJson(com.google.gson.JsonObject hit) @Nullable List<GalleryImage>gallery()Returns the value of thegalleryrecord component.Returns the value of thegameVersionsrecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringiconUrl()Returns the value of theiconUrlrecord component.@NotNull Stringid()Returns the value of theidrecord component.@Nullable StringReturns the value of theissuesUrlrecord component.@Nullable ProjectLicenselicense()Returns the value of thelicenserecord component.loaders()Returns the value of theloadersrecord component.@Nullable ModeratorMessageDeprecated.@Nullable StringReturns the value of themonetizationStatusrecord component.@NotNull ProjectTypeReturns the value of theprojectTyperecord component.@NotNull StringReturns the value of thepublishedrecord component.@Nullable Stringqueued()Returns the value of thequeuedrecord component.@Nullable ProjectRequestedStatusReturns the value of therequestedStatusrecord component.@NotNull ProjectSideReturns the value of theserverSiderecord component.@NotNull Stringslug()Returns the value of theslugrecord component.@Nullable StringReturns the value of thesourceUrlrecord component.@NotNull ProjectStatusstatus()Returns the value of thestatusrecord component.@NotNull Stringteam()Returns the value of theteamrecord component.@Nullable StringthreadId()Returns the value of thethreadIdrecord component.@NotNull Stringtitle()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.@NotNull Stringupdated()Returns the value of theupdatedrecord component.versions()Returns the value of theversionsrecord component.@Nullable StringwikiUrl()Returns the value of thewikiUrlrecord component.
-
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 aProjectrecord class.- Parameters:
slug- the value for theslugrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentcategories- the value for thecategoriesrecord componentclientSide- the value for theclientSiderecord componentserverSide- the value for theserverSiderecord componentbody- the value for thebodyrecord componentstatus- the value for thestatusrecord componentrequestedStatus- the value for therequestedStatusrecord componentadditionalCategories- the value for theadditionalCategoriesrecord componentissuesUrl- the value for theissuesUrlrecord componentsourceUrl- the value for thesourceUrlrecord componentwikiUrl- the value for thewikiUrlrecord componentdiscordUrl- the value for thediscordUrlrecord componentdonationUrls- the value for thedonationUrlsrecord componentprojectType- the value for theprojectTyperecord componentdownloads- the value for thedownloadsrecord componenticonUrl- the value for theiconUrlrecord componentcolor- the value for thecolorrecord componentthreadId- the value for thethreadIdrecord componentmonetizationStatus- the value for themonetizationStatusrecord componentid- the value for theidrecord componentteam- the value for theteamrecord componentbodyUrl- the value for thebodyUrlrecord componentmoderatorMessage- the value for themoderatorMessagerecord componentpublished- the value for thepublishedrecord componentupdated- the value for theupdatedrecord componentapproved- the value for theapprovedrecord componentqueued- the value for thequeuedrecord componentfollowers- the value for thefollowersrecord componentlicense- the value for thelicenserecord componentversions- the value for theversionsrecord componentgameVersions- the value for thegameVersionsrecord componentloaders- the value for theloadersrecord componentgallery- the value for thegalleryrecord component
-
-
Method Details
-
fromJson
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
slug
Returns the value of theslugrecord component.- Returns:
- the value of the
slugrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
categories
Returns the value of thecategoriesrecord component.- Returns:
- the value of the
categoriesrecord component
-
clientSide
Returns the value of theclientSiderecord component.- Returns:
- the value of the
clientSiderecord component
-
serverSide
Returns the value of theserverSiderecord component.- Returns:
- the value of the
serverSiderecord component
-
body
Returns the value of thebodyrecord component.- Returns:
- the value of the
bodyrecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
requestedStatus
Returns the value of therequestedStatusrecord component.- Returns:
- the value of the
requestedStatusrecord component
-
additionalCategories
Returns the value of theadditionalCategoriesrecord component.- Returns:
- the value of the
additionalCategoriesrecord component
-
issuesUrl
Returns the value of theissuesUrlrecord component.- Returns:
- the value of the
issuesUrlrecord component
-
sourceUrl
Returns the value of thesourceUrlrecord component.- Returns:
- the value of the
sourceUrlrecord component
-
wikiUrl
Returns the value of thewikiUrlrecord component.- Returns:
- the value of the
wikiUrlrecord component
-
discordUrl
Returns the value of thediscordUrlrecord component.- Returns:
- the value of the
discordUrlrecord component
-
donationUrls
Returns the value of thedonationUrlsrecord component.- Returns:
- the value of the
donationUrlsrecord component
-
projectType
Returns the value of theprojectTyperecord component.- Returns:
- the value of the
projectTyperecord component
-
downloads
Returns the value of thedownloadsrecord component.- Returns:
- the value of the
downloadsrecord component
-
iconUrl
Returns the value of theiconUrlrecord component.- Returns:
- the value of the
iconUrlrecord component
-
color
Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
threadId
Returns the value of thethreadIdrecord component.- Returns:
- the value of the
threadIdrecord component
-
monetizationStatus
Returns the value of themonetizationStatusrecord component.- Returns:
- the value of the
monetizationStatusrecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
team
Returns the value of theteamrecord component.- Returns:
- the value of the
teamrecord component
-
bodyUrl
Deprecated.Returns the value of thebodyUrlrecord component.- Returns:
- the value of the
bodyUrlrecord component
-
moderatorMessage
Deprecated.Returns the value of themoderatorMessagerecord component.- Returns:
- the value of the
moderatorMessagerecord component
-
published
Returns the value of thepublishedrecord component.- Returns:
- the value of the
publishedrecord component
-
updated
Returns the value of theupdatedrecord component.- Returns:
- the value of the
updatedrecord component
-
approved
Returns the value of theapprovedrecord component.- Returns:
- the value of the
approvedrecord component
-
queued
Returns the value of thequeuedrecord component.- Returns:
- the value of the
queuedrecord component
-
followers
Returns the value of thefollowersrecord component.- Returns:
- the value of the
followersrecord component
-
license
Returns the value of thelicenserecord component.- Returns:
- the value of the
licenserecord component
-
versions
Returns the value of theversionsrecord component.- Returns:
- the value of the
versionsrecord component
-
gameVersions
Returns the value of thegameVersionsrecord component.- Returns:
- the value of the
gameVersionsrecord component
-
loaders
Returns the value of theloadersrecord component.- Returns:
- the value of the
loadersrecord component
-
gallery
Returns the value of thegalleryrecord component.- Returns:
- the value of the
galleryrecord component
-