C# Class Nexus.Client.ModManagement.AutoUpdater

Check for newer versions of the registered mods.
If a newer version is found, it is optionally downloaded.
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
AddNewVersionNumberForMod ( IMod p_modMod, IModInfo p_mifNewestInfo ) : void

Adds the newest information for the given mod.

AutoUpdater ( IModRepository p_mrpModRepository, ModRegistry p_mrgModRegistry, IEnvironmentInfo p_eifEnvironmentInfo ) : System

A simple constructor that initializes the object with the given values.

SwitchModCategory ( IMod p_modMod, Int32 p_intCategoryId ) : void

Switches the mod category.

ToggleModEndorsement ( IMod p_modMod ) : void

Toggles the endorsement for the given mod.

Private Methods

Method Description
CheckForUpdate ( IMod p_modMod ) : IModInfo

Checks for the updated information for the given mod.

GotNewVersionNumber ( IAsyncResult p_arsResult ) : void

The callback when information about a mod has been retrieved.

RegisteredMods_CollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Handles the INotifyCollectionChanged.CollectionChanged event of the list of managed mods.

This checks for the newest information for mods that are added to the mod manager.

Method Details

AddNewVersionNumberForMod() public method

Adds the newest information for the given mod.
public AddNewVersionNumberForMod ( IMod p_modMod, IModInfo p_mifNewestInfo ) : void
p_modMod IMod The mod for which to add the newest info.
p_mifNewestInfo IModInfo The newest info to add for the given mod.
return void

AutoUpdater() public method

A simple constructor that initializes the object with the given values.
public AutoUpdater ( IModRepository p_mrpModRepository, ModRegistry p_mrgModRegistry, IEnvironmentInfo p_eifEnvironmentInfo ) : System
p_mrpModRepository IModRepository The mod repository from which to get mods and mod metadata.
p_mrgModRegistry ModRegistry The that contains the list /// of managed s.
p_eifEnvironmentInfo IEnvironmentInfo The application's envrionment info.
return System

SwitchModCategory() public method

Switches the mod category.
public SwitchModCategory ( IMod p_modMod, Int32 p_intCategoryId ) : void
p_modMod IMod The mod.
p_intCategoryId System.Int32 The new category id.
return void

ToggleModEndorsement() public method

Toggles the endorsement for the given mod.
public ToggleModEndorsement ( IMod p_modMod ) : void
p_modMod IMod The mod to endorse/unendorse.
return void