C# Class Grabacr07.KanColleWrapper.Updater

Show file Open project: KCV-Localisation/KanColleViewer Class Usage Examples

Public Methods

Method Description
GetOnlineVersion ( TranslationType Type, bool bGetURL = false ) : string

Uses the downloaded Version XML document to return a specific version number as a string.

IsOnlineVersionGreater ( TranslationType Type, string LocalVersionString ) : bool

Conditional function to determine whether the supplied version is greater than the one found online.

LoadVersion ( string UpdateURL ) : bool

Loads the version XML file from a remote URL. This houses all current online version info.

UpdateTranslations ( string BaseTranslationURL, string Culture, Translations TranslationsRef ) : int

Updates any translation files that differ from that found online.

Method Details

GetOnlineVersion() public method

Uses the downloaded Version XML document to return a specific version number as a string.
public GetOnlineVersion ( TranslationType Type, bool bGetURL = false ) : string
Type TranslationType Translation file type. Can also be for the App itself.
bGetURL bool If true, returns the URL of the online file instead of the version.
return string

IsOnlineVersionGreater() public method

Conditional function to determine whether the supplied version is greater than the one found online.
public IsOnlineVersionGreater ( TranslationType Type, string LocalVersionString ) : bool
Type TranslationType Translation file type. Can also be for the App itself.
LocalVersionString string Version string of the local file to check against
return bool

LoadVersion() public method

Loads the version XML file from a remote URL. This houses all current online version info.
public LoadVersion ( string UpdateURL ) : bool
UpdateURL string String URL to the version XML file.
return bool

UpdateTranslations() public method

Updates any translation files that differ from that found online.
public UpdateTranslations ( string BaseTranslationURL, string Culture, Translations TranslationsRef ) : int
BaseTranslationURL string String URL folder that contains all the translation XML files.
Culture string Language version to download
TranslationsRef Translations Link to the translation engine to obtain current translation versions.
return int