OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

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 Source

UserData()

Declaration
public UserData()
| Improve this Doc View Source

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 Source

BanInfo

Gets the data related to user ban.

Declaration
public BanData BanInfo { get; set; }
Property Value
Type Description
BanData
| Improve this Doc View Source

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>>>
| Improve this Doc View Source

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>
| Improve this Doc View Source

Id

Gets or sets the ID of the user.

Declaration
public string? Id { get; set; }
Property Value
Type Description
System.Nullable<System.String>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>
| Improve this Doc View Source

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>>
| Improve this Doc View Source

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>>
| Improve this Doc View Source

Type

Gets or sets the actor type of the user.

Declaration
public string? Type { get; set; }
Property Value
Type Description
System.Nullable<System.String>

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)