C# 클래스 Sharpcraft.Library.Configuration.LauncherSettings

Used to store settings for the Sharpcraft launcher.
상속: Settings
파일 보기 프로젝트 열기: SijmenSchoon/Sharpcraft 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
Remember bool
Username string

공개 메소드들

메소드 설명
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.

메소드 상세

GetPassword() 공개 메소드

Get plaintext version of the encrypted password.
public GetPassword ( ) : string
리턴 string

LauncherSettings() 공개 메소드

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

SetPassword() 공개 메소드

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.
리턴 void

WriteToFile() 공개 메소드

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

프로퍼티 상세

Remember 공개적으로 프로퍼티

Whether or not to remember the password.
public bool Remember
리턴 bool

Username 공개적으로 프로퍼티

The username of the most recently logged in user.
public string Username
리턴 string