Class UserData
Serialized user data.
Inheritance
System.Object
UserData
Namespace: OpenMod.API.Users
Assembly: OpenMod.API.dll
Syntax
public sealed class UserData : object
Constructors
| Improve this Doc View SourceUserData()
Declaration
public UserData()
UserData(String, String)
Declaration
public UserData(string id, string type)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | |
System.String | type |
Properties
| Improve this Doc View SourceBanInfo
Gets the data related to user ban.
Declaration
public BanData BanInfo { get; set; }
Property Value
Type | Description |
---|---|
BanData |
Data
Gets the user data. Plugins should use the IUserDataStore service to interact with this data.
Declaration
public Dictionary<string, object?>? Data { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<Dictionary<System.String, System.Nullable<System.Object>>> |
FirstSeen
Gets or sets the first time the user has been seen.
Declaration
public DateTime? FirstSeen { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
Id
Gets or sets the ID of the user.
Declaration
public string? Id { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
LastDisplayName
Gets or sets the last known display name of the user.
Declaration
public string? LastDisplayName { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |
LastSeen
Gets or sets the last time the user has been seen.
Declaration
public DateTime? LastSeen { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
Permissions
Gets or sets the permissions of the user.
Declaration
public HashSet<string>? Permissions { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<HashSet<System.String>> |
Roles
Gets or sets the roles of the user.
Declaration
public HashSet<string>? Roles { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<HashSet<System.String>> |
Type
Gets or sets the actor type of the user.
Declaration
public string? Type { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.String> |