C# Class Nexus.Client.ModRepositories.ModInfo

Describes the metadata of a mod in a repository.
Inheritance: IModInfo
Mostra file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
ModInfo ( ) : System

The default cosntructor.

ModInfo ( IModInfo p_mifCopy ) : System

The copy cosntructor.

ModInfo ( string p_strId, string p_strModName, string p_strHumanReadableVersion, string p_strLastKnownVersion, bool p_booIsEndorsed, Version p_verMachineVersion, string p_strAuthor, Int32 p_intCategoryId, Int32 p_intCustomCategoryId, string p_strDescription, string p_strInstallDate, Uri p_uriWebsite, ExtendedImage p_eimScreenshot ) : System

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

UpdateInfo ( IModInfo p_mifInfo, bool p_booOverwriteAllValues ) : void

Updates the object's proerties to the values of the given IModInfo.

Protected Methods

Method Description
SetAllInfo ( bool p_booOverwriteAllValues, string p_strId, string p_strModName, string p_strHumanReadableVersion, string p_strLastKnownVersion, bool p_booIsEndorsed, Version p_verMachineVersion, string p_strAuthor, Int32 p_intCategoryId, Int32 p_intCustomCategoryId, string p_strDescription, string p_strInstallDate, Uri p_uriWebsite, ExtendedImage p_eimScreenshot ) : void

Sets all of the properties of the object.

Method Details

ModInfo() public method

The default cosntructor.
public ModInfo ( ) : System
return System

ModInfo() public method

The copy cosntructor.
public ModInfo ( IModInfo p_mifCopy ) : System
p_mifCopy IModInfo The mod info to copy.
return System

ModInfo() public method

A simple constructor that initializes the object with the given values.
public ModInfo ( string p_strId, string p_strModName, string p_strHumanReadableVersion, string p_strLastKnownVersion, bool p_booIsEndorsed, Version p_verMachineVersion, string p_strAuthor, Int32 p_intCategoryId, Int32 p_intCustomCategoryId, string p_strDescription, string p_strInstallDate, Uri p_uriWebsite, ExtendedImage p_eimScreenshot ) : System
p_strId string The id of the mod.
p_strModName string The name of the mod.
p_strHumanReadableVersion string The human readable form of the mod's version.
p_strLastKnownVersion string The last known mod version.
p_booIsEndorsed bool The Endorsement state of the mod.
p_verMachineVersion Version The version of the mod.
p_strAuthor string The author of the mod.
p_intCategoryId Int32
p_intCustomCategoryId Int32
p_strDescription string The description of the mod.
p_strInstallDate string The install date of the mod.
p_uriWebsite Uri The website of the mod.
p_eimScreenshot ExtendedImage The mod's screenshot.
return System

SetAllInfo() protected method

Sets all of the properties of the object.
protected SetAllInfo ( bool p_booOverwriteAllValues, string p_strId, string p_strModName, string p_strHumanReadableVersion, string p_strLastKnownVersion, bool p_booIsEndorsed, Version p_verMachineVersion, string p_strAuthor, Int32 p_intCategoryId, Int32 p_intCustomCategoryId, string p_strDescription, string p_strInstallDate, Uri p_uriWebsite, ExtendedImage p_eimScreenshot ) : void
p_booOverwriteAllValues bool Whether to overwrite the current info values, /// or just the empty ones.
p_strId string The id of the mod.
p_strModName string The name of the mod.
p_strHumanReadableVersion string The human readable form of the mod's version.
p_strLastKnownVersion string The last known mod version.
p_booIsEndorsed bool The Endorsement state of the mod.
p_verMachineVersion Version The version of the mod.
p_strAuthor string The author of the mod.
p_intCategoryId Int32
p_intCustomCategoryId Int32
p_strDescription string The description of the mod.
p_strInstallDate string The install date of the mod.
p_uriWebsite Uri The website of the mod.
p_eimScreenshot ExtendedImage The mod's screenshot.
return void

UpdateInfo() public method

Updates the object's proerties to the values of the given IModInfo.
public UpdateInfo ( IModInfo p_mifInfo, bool p_booOverwriteAllValues ) : void
p_mifInfo IModInfo The whose values /// are to be used to update this object's properties.
p_booOverwriteAllValues bool Whether to overwrite the current info values, /// or just the empty ones.
return void