Skip to content
This repository was archived by the owner on Sep 21, 2022. It is now read-only.

ModIO.ModManager.GetModProfiles

Jackson Wood edited this page Mar 25, 2019 · 5 revisions

ModManager.GetModProfiles

public static void GetModProfiles(IEnumerable<int> modIds, Action<List<ModProfile>> onSuccess, Action<WebRequestError> onError);

Parameters

Name Description
modIds Identifiers for the mod profiles to get
onSuccess Action to execute if the request succeeds
onError Action to execute if the request returns an error

Description

Fetches and caches Mod Profiles (if not already cached).

As with all similar ModManager functions, this checks the cache for the relevant ModProfiles first, and for any that aren't found, fetches the profiles from the server and stores them in the cache. As such, there is the potential for the data returned by this function to be obsolete.

See also: ModIO.CacheClient.IterateModProfiles, ModIO.APIClient.GetAllMods

Clone this wiki locally