Class AccountMemory
The last signed-in account, kept in the app's settings.json as Matrix:UserId and Matrix:Homeserver, so the next start resumes it.
Inherited Members
Namespace: Uniform.Chat.Avalonia.Services
Assembly: Uniform.Chat.Avalonia.dll
Syntax
public sealed class AccountMemory
Constructors
| Edit this page View SourceAccountMemory(string)
Use the settings file of applicationName.
Declaration
public AccountMemory(string applicationName)
Parameters
| Type | Name | Description |
|---|---|---|
| string | applicationName |
Methods
| Edit this page View SourceForget()
Forget the account, e.g. after signing out.
Declaration
public void Forget()
Load()
Return the remembered account without a password, or null.
Declaration
public SignIn? Load()
Returns
| Type | Description |
|---|---|
| SignIn |
Save(SignIn)
Remember the account of a successful sign-in; the password is never saved.
Declaration
public void Save(SignIn signIn)
Parameters
| Type | Name | Description |
|---|---|---|
| SignIn | signIn |