UserConfigFile
A class in TavernLib, TavernLib.Backend.Server.Configs.
The ServerConfigFile for users.json, with lookups on the last read. Use the one on TavernManager, not a new one.
- Listed in TavernLib.Backend.Server.Configs
- Inherits or implements
ServerConfigFile<UserConfig> - Documented in User config
Constructors
| Member | What it is |
|---|---|
UserConfigFile(string filePath) | Created by TavernLib to read and write this config file at the given path. |
Methods
| Member | What it is |
|---|---|
UserConfig.User GetUser(string username) | A user from LastRead by username (without case) or by user id, or null. |
UserConfig.User GetUser(int identifier) | A user from LastRead by username (without case) or by user id, or null. |
bool TryGetUser(string username, out UserConfig.User user) | The same as GetUser, as a try-pattern. |
bool TryGetUser(int identifier, out UserConfig.User user) | The same as GetUser, as a try-pattern. |
Used in
Members of other types that take, return or hold a UserConfigFile: