ModIO.APIClient.GetAllModfiles
APIClient.GetAllModfiles
public static void GetAllModfiles(int modId, RequestFilter filter, APIPaginationParameters pagination, Action<RequestPage<Modfile>> successCallback, Action<WebRequestError> errorCallback);
Name | Description |
---|---|
modId | Id of the mod to retrieve modfiles for |
filter | The filter parameters to be applied to the request |
pagination | The pagination parameters to be applied to the request |
successCallback | Action to execute if the request succeeds |
errorCallback | Action to execute if the request returns an error |
Fetches all modfiles for a given mod from the mod.io servers.
Returns all the modfiles associated matching the filter and pagination paramters for the the given mod id. A successful request will return a RequestPage of Modfiles.
See the mod.io filtering documentation for more comprehensive explanation of the filtering and pagination parameters.
NOTE: If the game requires mod downloads to be initiated via the API, the address stored in ModIO.ModfileLocator.binaryURL contained in the download locator will expire at the time indicated by the value of Modfile.downloadLocator.dateExpires and is thus unwise to cache.
See also: docs.mod.io page, ModIO.API.GetAllModfilesFilterFields