Class Requester
The authenticated user and device of a request.
Implements
Inherited Members
Namespace: Uniform.Matrix.Server.Accounts
Assembly: Uniform.Matrix.Server.dll
Syntax
public sealed record Requester : IEquatable<Requester>
Constructors
| Edit this page View SourceRequester(string, string, bool, bool, bool)
The authenticated user and device of a request.
Declaration
public Requester(string UserId, string DeviceId, bool Admin = false, bool Suspended = false, bool Locked = false)
Parameters
| Type | Name | Description |
|---|---|---|
| string | UserId | Full user ID. |
| string | DeviceId | Device of the access token. |
| bool | Admin | Whether the user administers the server. |
| bool | Suspended | Whether the account is suspended, so it may read but not send. |
| bool | Locked | Whether the account is locked, so only logging out is allowed. |
Properties
| Edit this page View SourceAdmin
Whether the user administers the server.
Declaration
public bool Admin { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
DeviceId
Device of the access token.
Declaration
public string DeviceId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |
Locked
Whether the account is locked, so only logging out is allowed.
Declaration
public bool Locked { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
Suspended
Whether the account is suspended, so it may read but not send.
Declaration
public bool Suspended { get; init; }
Property Value
| Type | Description |
|---|---|
| bool |
UserId
Full user ID.
Declaration
public string UserId { get; init; }
Property Value
| Type | Description |
|---|---|
| string |