This repository was archived by the owner on Sep 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
ModIO.ModManager.GetModStatistics
Jackson Wood edited this page Mar 25, 2019
·
2 revisions
ModManager.GetModStatistics
public static void GetModStatistics(int modId, Action<ModStatistics> onSuccess, Action<WebRequestError> onError);
| Name | Description |
|---|---|
| modId | Mod identifier for the mod statistics |
| onSuccess | Action to execute if the request succeeds |
| onError | Action to execute if the request returns an error |
Fetches and caches a Mod's Statistics (if not already cached or if expired).
As with all similar ModManager functions, this checks the cache for the Modfile, and if not found, fetches it from the server and stores it in the cache. Unlike most other similar ModManager functions, this endpoint will not return obsolete data as ModStatistics objects contain an expiration date and will be re-fetched if expired.
See also: ModIO.APIClient.GetModStats, ModIO.CacheClient.LoadModStatistics