Class AsyncRequestHelper
java.lang.Object
io.github.matyrobbrt.curseforgeapi.request.helper.AsyncRequestHelper
- All Implemented Interfaces:
IRequestHelper
A helper class for making direct requests.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCategories
(int gameId) getCategories
(int gameId, int classId) getFeaturedMods
(FeaturedModsQuery query) getFiles
(int... fileIds) getFingerprintMatches
(int... fingerprints) getGame
(int gameId) getGames()
getGames
(PaginationQuery paginationQuery) getGameVersions
(int gameId) getGameVersionTypes
(int gameId) getMod
(int modId) getModDescription
(int modId) getModFile
(int modId, int fileId) getModFileChangelog
(int modId, int fileId) getModFileDownloadURL
(int modId, int fileId) getModFiles
(int modId) getModFiles
(int modId, Integer gameVersionTypeId, PaginationQuery paginationQuery) getModFiles
(Mod mod) searchMods
(ModSearchQuery query)
-
Constructor Details
-
AsyncRequestHelper
-
-
Method Details
-
getModFile
- Specified by:
getModFile
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getModFiles
- Specified by:
getModFiles
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getModFiles
public AsyncRequest<Response<List<File>>> getModFiles(int modId, Integer gameVersionTypeId, PaginationQuery paginationQuery) throws CurseForgeException - Specified by:
getModFiles
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getCategories
- Specified by:
getCategories
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getCategories
public AsyncRequest<Response<List<Category>>> getCategories(int gameId, int classId) throws CurseForgeException - Specified by:
getCategories
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getMod
- Specified by:
getMod
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
searchMods
public AsyncRequest<Response<List<Mod>>> searchMods(ModSearchQuery query) throws CurseForgeException - Specified by:
searchMods
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getGame
- Specified by:
getGame
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getGames
- Specified by:
getGames
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getGames
public AsyncRequest<Response<List<Game>>> getGames(PaginationQuery paginationQuery) throws CurseForgeException - Specified by:
getGames
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getGameVersions
public AsyncRequest<Response<List<GameVersionsByType>>> getGameVersions(int gameId) throws CurseForgeException - Specified by:
getGameVersions
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getGameVersionTypes
public AsyncRequest<Response<List<GameVersionType>>> getGameVersionTypes(int gameId) throws CurseForgeException - Specified by:
getGameVersionTypes
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getModDescription
- Specified by:
getModDescription
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getFeaturedMods
public AsyncRequest<Response<FeaturedMods>> getFeaturedMods(FeaturedModsQuery query) throws CurseForgeException - Specified by:
getFeaturedMods
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getModFiles
- Specified by:
getModFiles
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getFiles
- Specified by:
getFiles
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getModFileChangelog
public AsyncRequest<Response<String>> getModFileChangelog(int modId, int fileId) throws CurseForgeException - Specified by:
getModFileChangelog
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getModFileDownloadURL
public AsyncRequest<Response<String>> getModFileDownloadURL(int modId, int fileId) throws CurseForgeException - Specified by:
getModFileDownloadURL
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getFingerprintMatches
public AsyncRequest<Response<FingerprintsMatchesResult>> getFingerprintMatches(int... fingerprints) throws CurseForgeException - Specified by:
getFingerprintMatches
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-
getFingerprintsFuzzyMatches
public AsyncRequest<Response<List<FingerprintFuzzyMatch>>> getFingerprintsFuzzyMatches(GetFuzzyMatchesQuery query) throws CurseForgeException - Specified by:
getFingerprintsFuzzyMatches
in interfaceIRequestHelper
- Throws:
CurseForgeException
- See Also:
-