C# Класс Nexus.Client.ModManagement.AutoUpdater

Check for newer versions of the registered mods.
If a newer version is found, it is optionally downloaded.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

AddNewVersionNumberForMod() публичный Метод

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.
Результат void

AutoUpdater() публичный Метод

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.
Результат System

SwitchModCategory() публичный Метод

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.
Результат void

ToggleModEndorsement() публичный Метод

Toggles the endorsement for the given mod.
public ToggleModEndorsement ( IMod p_modMod ) : void
p_modMod IMod The mod to endorse/unendorse.
Результат void