Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,9 @@ public static class ProjectSearchResult implements RemoteMod.IMod {

private final List<String> categories;

@SerializedName("display_categories")
private final List<String> displayCategories;

@SerializedName("project_type")
private final String projectType;

Expand All @@ -600,11 +603,12 @@ public static class ProjectSearchResult implements RemoteMod.IMod {
@SerializedName("latest_version")
private final String latestVersion;

public ProjectSearchResult(String slug, String title, String description, List<String> categories, String projectType, int downloads, String iconUrl, String projectId, String author, List<String> versions, Instant dateCreated, Instant dateModified, String latestVersion) {
public ProjectSearchResult(String slug, String title, String description, List<String> categories, List<String> displayCategories, String projectType, int downloads, String iconUrl, String projectId, String author, List<String> versions, Instant dateCreated, Instant dateModified, String latestVersion) {
this.slug = slug;
this.title = title;
this.description = description;
this.categories = categories;
this.displayCategories = displayCategories;
this.projectType = projectType;
this.downloads = downloads;
this.iconUrl = iconUrl;
Expand Down Expand Up @@ -632,6 +636,10 @@ public List<String> getCategories() {
return categories;
}

public List<String> getDisplayCategories() {
return displayCategories;
}

public String getProjectType() {
return projectType;
}
Expand Down Expand Up @@ -691,7 +699,7 @@ public RemoteMod toMod() {
author,
title,
description,
categories,
displayCategories,
String.format("https://modrinth.com/%s/%s", projectType, projectId),
iconUrl,
this
Expand Down