C# Class TDSM.Core.Net.Web.Repository

Exibir arquivo Open project: DeathCradle/Terraria-s-Dedicated-Server-Mod

Public Methods

Method Description
CheckForLatest ( ) : void

Checks if all installed plugins are compatible with the latest recorded TDSM version

GetAvailableUpdate ( string packageName = null, bool updateOnly = true ) : TDSM.Core.Net.Web.PackageInfo[]

Get all available updates or check for a specific package update.

GetAvailableUpdates ( ) : TDSM.Core.Net.Web.PackageInfo[]

Get all available updates

PerformUpdate ( PackageInfo info ) : bool

Perform and update

Private Methods

Method Description
ExtractZip ( FileInfo info ) : string
FetchUpdate ( PackageInfo info ) : string
GetGitHubRelease ( string url ) : GitHubRelease
GetUpdateInfo ( string packageName, string currentVersion = null ) : PackageInfo
GetUrl_PackageInfoUrl ( int apiBuild, short apiPhase, string packageName, string currentVersion = null ) : string
InstallUpdate ( string path ) : string[]
IsChild ( string path ) : string

Method Details

CheckForLatest() public static method

Checks if all installed plugins are compatible with the latest recorded TDSM version
public static CheckForLatest ( ) : void
return void

GetAvailableUpdate() public static method

Get all available updates or check for a specific package update.
public static GetAvailableUpdate ( string packageName = null, bool updateOnly = true ) : TDSM.Core.Net.Web.PackageInfo[]
packageName string
updateOnly bool
return TDSM.Core.Net.Web.PackageInfo[]

GetAvailableUpdates() public static method

Get all available updates
public static GetAvailableUpdates ( ) : TDSM.Core.Net.Web.PackageInfo[]
return TDSM.Core.Net.Web.PackageInfo[]

PerformUpdate() public static method

Perform and update
public static PerformUpdate ( PackageInfo info ) : bool
info PackageInfo
return bool