Table of Contents

Class Account

Namespace
Mailtrap.Accounts.Models
Assembly
Mailtrap.Abstractions.dll

Represents account details.

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

Properties

AccessLevels

Gets the account access levels.

[JsonPropertyName("access_levels")]
[JsonPropertyOrder(3)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<AccessLevel> AccessLevels { get; }

Property Value

IList<AccessLevel>

Contains a list of access levels for account.

Id

Gets the account identifier.

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

Property Value

long

Account identifier.

Name

Gets the account name.

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

Property Value

string

Account name.