C# Class Grabacr07.KanColleWrapper.Updater

Afficher le fichier Open project: KCV-Localisation/KanColleViewer Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat string

IsOnlineVersionGreater() public méthode

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
Résultat bool

LoadVersion() public méthode

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.
Résultat bool

UpdateTranslations() public méthode

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.
Résultat int