Class CurseFileInfo
java.lang.Object
fr.flowarg.flowupdater.download.json.CurseFileInfo
- Direct Known Subclasses:
CurseModPackInfo
This class represents a file in the CurseForge API.
-
Constructor Summary
ConstructorsConstructorDescriptionCurseFileInfo(int projectID, int fileID) Construct a new CurseFileInfo object. -
Method Summary
Modifier and TypeMethodDescriptionbooleanintGet the file ID.static @NotNull List<CurseFileInfo>getFilesFromJson(String jsonUrl) Retrieve a collection ofCurseFileInfoby parsing a remote JSON file.static @NotNull List<CurseFileInfo>getFilesFromJson(URL jsonUrl) Retrieve a collection ofCurseFileInfoby parsing a remote JSON file.intGet the project ID.inthashCode()
-
Constructor Details
-
CurseFileInfo
public CurseFileInfo(int projectID, int fileID) Construct a new CurseFileInfo object.- Parameters:
projectID- the ID of the project.fileID- the ID of the file.
-
-
Method Details
-
getFilesFromJson
Retrieve a collection ofCurseFileInfoby parsing a remote JSON file.- Parameters:
jsonUrl- the url of the remote JSON file.- Returns:
- a collection of
CurseFileInfo.
-
getFilesFromJson
Retrieve a collection ofCurseFileInfoby parsing a remote JSON file.- Parameters:
jsonUrl- the url of the remote JSON file.- Returns:
- a collection of
CurseFileInfo.
-
getProjectID
public int getProjectID()Get the project ID.- Returns:
- the project ID.
-
getFileID
public int getFileID()Get the file ID.- Returns:
- the file ID.
-
equals
-
hashCode
public int hashCode()
-