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
Constructors -
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:
getModFilein interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getModFiles
- Specified by:
getModFilesin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getModFiles
public AsyncRequest<Response<List<File>>> getModFiles(int modId, Integer gameVersionTypeId, PaginationQuery paginationQuery) throws CurseForgeException - Specified by:
getModFilesin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getCategories
- Specified by:
getCategoriesin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getCategories
public AsyncRequest<Response<List<Category>>> getCategories(int gameId, int classId) throws CurseForgeException - Specified by:
getCategoriesin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getMod
- Specified by:
getModin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
searchMods
public AsyncRequest<Response<List<Mod>>> searchMods(ModSearchQuery query) throws CurseForgeException - Specified by:
searchModsin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
searchModsPaginated
public AsyncRequest<Response<PaginatedData<List<Mod>>>> searchModsPaginated(ModSearchQuery query) throws CurseForgeException - Specified by:
searchModsPaginatedin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getGame
- Specified by:
getGamein interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getGames
- Specified by:
getGamesin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getGames
public AsyncRequest<Response<List<Game>>> getGames(PaginationQuery paginationQuery) throws CurseForgeException - Specified by:
getGamesin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getGameVersions
public AsyncRequest<Response<List<GameVersionsByType>>> getGameVersions(int gameId) throws CurseForgeException - Specified by:
getGameVersionsin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getGameVersionTypes
public AsyncRequest<Response<List<GameVersionType>>> getGameVersionTypes(int gameId) throws CurseForgeException - Specified by:
getGameVersionTypesin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getModDescription
- Specified by:
getModDescriptionin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getFeaturedMods
public AsyncRequest<Response<FeaturedMods>> getFeaturedMods(FeaturedModsQuery query) throws CurseForgeException - Specified by:
getFeaturedModsin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getModFiles
- Specified by:
getModFilesin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getFiles
- Specified by:
getFilesin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getModFileChangelog
public AsyncRequest<Response<String>> getModFileChangelog(int modId, int fileId) throws CurseForgeException - Specified by:
getModFileChangelogin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getModFileDownloadURL
public AsyncRequest<Response<String>> getModFileDownloadURL(int modId, int fileId) throws CurseForgeException - Specified by:
getModFileDownloadURLin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getFingerprintMatches
public AsyncRequest<Response<FingerprintsMatchesResult>> getFingerprintMatches(int... fingerprints) throws CurseForgeException - Specified by:
getFingerprintMatchesin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-
getFingerprintsFuzzyMatches
public AsyncRequest<Response<List<FingerprintFuzzyMatch>>> getFingerprintsFuzzyMatches(GetFuzzyMatchesQuery query) throws CurseForgeException - Specified by:
getFingerprintsFuzzyMatchesin interfaceIRequestHelper- Throws:
CurseForgeException- See Also:
-