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 Summary
ConstructorsConstructorDescriptionProjectResult(@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) Creates an instance of aProjectResultrecord class. -
Method Summary
Modifier and TypeMethodDescription@NotNull Stringauthor()Returns the value of theauthorrecord component.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 thedateCreatedrecord component.@NotNull StringReturns the value of thedateModifiedrecord component.@NotNull StringReturns the value of thedescriptionrecord component.Returns the value of thedisplayCategoriesrecord component.@NotNull IntegerReturns the value of thedownloadsrecord component.final booleanIndicates whether some other object is "equal to" this one.@Nullable StringReturns the value of thefeaturedGalleryrecord component.@NotNull Integerfollows()Returns the value of thefollowsrecord component.static ProjectResultfromJson(com.google.gson.JsonObject hit) gallery()Returns the value of thegalleryrecord component.final inthashCode()Returns a hash code value for this object.@Nullable StringiconUrl()Returns the value of theiconUrlrecord component.@Nullable StringReturns the value of thelatestVersionrecord component.@NotNull Stringlicense()Returns the value of thelicenserecord component.@Nullable MonetizationStatusReturns the value of themonetizationStatusrecord component.@NotNull StringReturns the value of theprojectIdrecord component.@NotNull ProjectTypeReturns the value of theprojectTyperecord component.@NotNull ProjectSideReturns the value of theserverSiderecord component.@NotNull Stringslug()Returns the value of theslugrecord 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.versions()Returns the value of theversionsrecord component.
-
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 aProjectResultrecord 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 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 componentprojectId- the value for theprojectIdrecord componentauthor- the value for theauthorrecord componentdisplayCategories- the value for thedisplayCategoriesrecord componentversions- the value for theversionsrecord componentfollows- the value for thefollowsrecord componentdateCreated- the value for thedateCreatedrecord componentdateModified- the value for thedateModifiedrecord componentlatestVersion- the value for thelatestVersionrecord componentlicense- the value for thelicenserecord componentgallery- the value for thegalleryrecord componentfeaturedGallery- the value for thefeaturedGalleryrecord 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
-
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
-
projectId
Returns the value of theprojectIdrecord component.- Returns:
- the value of the
projectIdrecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-
displayCategories
Returns the value of thedisplayCategoriesrecord component.- Returns:
- the value of the
displayCategoriesrecord component
-
versions
Returns the value of theversionsrecord component.- Returns:
- the value of the
versionsrecord component
-
follows
Returns the value of thefollowsrecord component.- Returns:
- the value of the
followsrecord component
-
dateCreated
Returns the value of thedateCreatedrecord component.- Returns:
- the value of the
dateCreatedrecord component
-
dateModified
Returns the value of thedateModifiedrecord component.- Returns:
- the value of the
dateModifiedrecord component
-
latestVersion
Returns the value of thelatestVersionrecord component.- Returns:
- the value of the
latestVersionrecord component
-
license
Returns the value of thelicenserecord component.- Returns:
- the value of the
licenserecord component
-
gallery
Returns the value of thegalleryrecord component.- Returns:
- the value of the
galleryrecord component
-
featuredGallery
Returns the value of thefeaturedGalleryrecord component.- Returns:
- the value of the
featuredGalleryrecord component
-