C# Class Nexus.Client.ModManagement.AddModDescriptor

Describes a mod that is being added to the mod manager.
Inheritance: IXmlSerializable
Show file Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
AddModDescriptor ( ) : System

The default constructor.

AddModDescriptor ( Uri p_uriSourceUri, string p_strDefaultSourcePath, IEnumerable p_enmDownloadFiles, TaskStatus p_tstStatus, List p_lstSourceName ) : System

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

GetHost ( Int32 index ) : string

Gets the host where the file is currently being downloaded.

GetSchema ( ) : XmlSchema

This method is reserved, and returns as required.

ReadXml ( XmlReader reader ) : void

Deserializes the object from XML.

ToString ( ) : string

Returns a summary of the descriptor.

WriteXml ( XmlWriter writer ) : void

Serializes the object to XML.

Method Details

AddModDescriptor() public method

The default constructor.
public AddModDescriptor ( ) : System
return System

AddModDescriptor() public method

A simple constructor that initializes the object with the given values.
public AddModDescriptor ( Uri p_uriSourceUri, string p_strDefaultSourcePath, IEnumerable p_enmDownloadFiles, TaskStatus p_tstStatus, List p_lstSourceName ) : System
p_uriSourceUri System.Uri The uri that points to the external source of the mod.
p_strDefaultSourcePath string The default source path of the mod.
p_enmDownloadFiles IEnumerable The list of files that still need to be downloaded to build the mod.
p_tstStatus TaskStatus The status of the task that is adding the mod.
p_lstSourceName List
return System

GetHost() public method

Gets the host where the file is currently being downloaded.
public GetHost ( Int32 index ) : string
index System.Int32
return string

GetSchema() public method

This method is reserved, and returns as required.
public GetSchema ( ) : XmlSchema
return System.Xml.Schema.XmlSchema

ReadXml() public method

Deserializes the object from XML.
public ReadXml ( XmlReader reader ) : void
reader System.Xml.XmlReader The xml reader from which to deserialize the object.
return void

ToString() public method

Returns a summary of the descriptor.
public ToString ( ) : string
return string

WriteXml() public method

Serializes the object to XML.
public WriteXml ( XmlWriter writer ) : void
writer System.Xml.XmlWriter The xml writer to which to serialize the object.
return void