C# Class Sharpcraft.Library.Configuration.LauncherSettings

Used to store settings for the Sharpcraft launcher.
Inheritance: Settings
Afficher le fichier Open project: SijmenSchoon/Sharpcraft Class Usage Examples

Méthodes publiques

Свойство Type Description
Remember bool
Username string

Méthodes publiques

Méthode Description
GetPassword ( ) : string

Get plaintext version of the encrypted password.

LauncherSettings ( string settingsFile ) : System

Initialize a new instance of the LauncherSettings class.

SetPassword ( string password ) : void

Set the user's password.

The password will be encrypted using XOR and then converted into a Base64 string.

WriteToFile ( ) : void

Write settings to the settings file.

LauncherSettings overrides Settings.WriteToFile and logs any IO errors instead of crashing.

Method Details

GetPassword() public méthode

Get plaintext version of the encrypted password.
public GetPassword ( ) : string
Résultat string

LauncherSettings() public méthode

Initialize a new instance of the LauncherSettings class.
public LauncherSettings ( string settingsFile ) : System
settingsFile string The file containing a JSON serialization of this object.
Résultat System

SetPassword() public méthode

Set the user's password.
The password will be encrypted using XOR and then converted into a Base64 string.
public SetPassword ( string password ) : void
password string Plaintext version of password.
Résultat void

WriteToFile() public méthode

Write settings to the settings file.
LauncherSettings overrides Settings.WriteToFile and logs any IO errors instead of crashing.
public WriteToFile ( ) : void
Résultat void

Property Details

Remember public_oe property

Whether or not to remember the password.
public bool Remember
Résultat bool

Username public_oe property

The username of the most recently logged in user.
public string Username
Résultat string