Interface IUser
Represents an OpenMod user.
Assembly: OpenMod.API.dll
Syntax
public interface IUser : ICommandActor, IPermissionActor
Properties
|
Improve this Doc
View Source
Provider
Gets the user provider for the user type.
Declaration
IUserProvider Provider { get; }
Property Value
|
Improve this Doc
View Source
Session
Gets the current user session. Returns null if the user is not online.
Declaration
IUserSession Session { get; }
Property Value
Methods
|
Improve this Doc
View Source
GetPersistentDataAsync<T>(String)
Gets persistent data. T must be serializable.
Declaration
Task<T> GetPersistentDataAsync<T>(string key)
Parameters
Type |
Name |
Description |
System.String |
key |
|
Returns
Type Parameters
|
Improve this Doc
View Source
SavePersistentDataAsync<T>(String, T)
Saves persistent data. T must be serializable.
Declaration
Task SavePersistentDataAsync<T>(string key, T data)
Parameters
Type |
Name |
Description |
System.String |
key |
|
T |
data |
|
Returns
Type Parameters
Extension Methods