Table of Contents

Class Specifier

Namespace
Mailtrap.AccountAccesses.Models
Assembly
Mailtrap.Abstractions.dll

Represents account access specifier (principal) details.

public sealed record Specifier : IEquatable<Specifier>
Inheritance
Specifier
Implements

Properties

AuthorName

Gets the origin of the token.

[JsonPropertyName("author_name")]
[JsonPropertyOrder(4)]
public string? AuthorName { get; set; }

Property Value

string

Origin of the token.

Remarks

Applicable to 'ApiToken' specifier type only.

Email

Gets the specifier email address (user or invite).

[JsonPropertyName("email")]
[JsonPropertyOrder(2)]
public string? Email { get; set; }

Property Value

string

Specifier email address (user or invite).

Remarks

Applicable to 'User' and 'Invite' specifier types only.

ExpiresAt

Gets the token expiration date and time.

[JsonPropertyName("expires_at")]
[JsonPropertyOrder(6)]
public DateTimeOffset? ExpiresAt { get; set; }

Property Value

DateTimeOffset?

Token expiration date and time.

Remarks

Applicable to 'ApiToken' specifier type only.

Id

Gets the specifier unique identifier (user, invite or token).

[JsonPropertyName("id")]
[JsonPropertyOrder(1)]
[JsonRequired]
public long Id { get; set; }

Property Value

long

Specifier unique identifier (user, invite or token).

Name

Gets the specifier name (user or API token).

[JsonPropertyName("name")]
[JsonPropertyOrder(3)]
public string? Name { get; set; }

Property Value

string

Specifier name (user or API token).

Remarks

Applicable to 'User' and 'ApiToken' specifier types only.

Token

Gets the token value.

[JsonPropertyName("token")]
[JsonPropertyOrder(5)]
public string? Token { get; set; }

Property Value

string

Token value.

Remarks

Applicable to 'ApiToken' specifier type only.

TwoFactorAuthEnabled

Gets the flag indicating if 2FA enabled for user.

[JsonPropertyName("two_factor_authentication_enabled")]
[JsonPropertyOrder(7)]
public bool? TwoFactorAuthEnabled { get; set; }

Property Value

bool?

true when 2FA enabled for user.
false otherwise.

Remarks

Applicable to 'User' specifier type only.