Table of Contents

Class Inbox

Namespace
Mailtrap.Inboxes.Models
Assembly
Mailtrap.Abstractions.dll

Represents inbox details.

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

Properties

Domain

Gets domain name.

[JsonPropertyName("domain")]
[JsonPropertyOrder(14)]
public string? Domain { get; set; }

Property Value

string

Domain name.

EmailDomain

Gets domain name for email.

[JsonPropertyName("email_domain")]
[JsonPropertyOrder(16)]
public string? EmailDomain { get; set; }

Property Value

string

Domain name for email.

EmailUsername

Gets email user name for the inbox.

[JsonPropertyName("email_username")]
[JsonPropertyOrder(7)]
public string? EmailUsername { get; set; }

Property Value

string

Email user name for the inbox.

EmailUsernameEnabled

Gets the flag indicating if email user name is enabled for the inbox.

[JsonPropertyName("email_username_enabled")]
[JsonPropertyOrder(8)]
public bool? EmailUsernameEnabled { get; set; }

Property Value

bool?

true if email user name is enabled for the inbox.
false otherwise.

EmailsCount

Gets emails count.

[JsonPropertyName("emails_count")]
[JsonPropertyOrder(17)]
public long? EmailsCount { get; set; }

Property Value

long?

Emails count.

ForwardFromEmailAddress

Gets email address used for forwarding.

[JsonPropertyName("forward_from_email_address")]
[JsonPropertyOrder(12)]
public string? ForwardFromEmailAddress { get; set; }

Property Value

string

Email address used for forwarding.

ForwardedMessagesCount

Gets inbox forwarded messages count.

[JsonPropertyName("forwarded_messages_count")]
[JsonPropertyOrder(10)]
public long? ForwardedMessagesCount { get; set; }

Property Value

long?

Inbox forwarded messages count.

Id

Gets inbox identifier.

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

Property Value

long

Inbox identifier.

LastMessageSentAt

Gets the timestamp when the last message was sent.

[JsonPropertyName("last_message_sent_at")]
[JsonPropertyOrder(19)]
public DateTimeOffset? LastMessageSentAt { get; set; }

Property Value

DateTimeOffset?

Timestamp when the last message was sent.

MaxMessageSize

Gets maximum message size.

[JsonPropertyName("max_message_size")]
[JsonPropertyOrder(22)]
public long? MaxMessageSize { get; set; }

Property Value

long?

Maximum message size.

MaxSize

Gets maximum size of the inbox.

[JsonPropertyName("max_size")]
[JsonPropertyOrder(5)]
public long? MaxSize { get; set; }

Property Value

long?

Maximum size of the inbox.

Name

Gets inbox name.

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

Property Value

string

Inbox name.

Password

Gets inbox password.

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

Property Value

string

Inbox password.

Permissions

Gets permissions for this inbox granted for the current token.

[JsonPropertyName("permissions")]
[JsonPropertyOrder(23)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public InboxPermissions Permissions { get; }

Property Value

InboxPermissions

Permissions for this inbox granted for the current token.

Pop3Domain

Gets domain name for POP3.

[JsonPropertyName("pop3_domain")]
[JsonPropertyOrder(15)]
public string? Pop3Domain { get; set; }

Property Value

string

Domain name for POP3.

Pop3Ports

Gets a list of POP3 ports.

[JsonPropertyName("pop3_ports")]
[JsonPropertyOrder(21)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<int> Pop3Ports { get; }

Property Value

IList<int>

List of POP3 ports.

ProjectId

Gets project identifier.

[JsonPropertyName("project_id")]
[JsonPropertyOrder(13)]
[JsonRequired]
public long ProjectId { get; set; }

Property Value

long

Project identifier.

SentMessagesCount

Gets inbox sent messages count.

[JsonPropertyName("sent_messages_count")]
[JsonPropertyOrder(9)]
public long? SentMessagesCount { get; set; }

Property Value

long?

Inbox sent messages count.

SmtpPorts

Gets a list of SMTP ports.

[JsonPropertyName("smtp_ports")]
[JsonPropertyOrder(20)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<int> SmtpPorts { get; }

Property Value

IList<int>

List of SMTP ports.

Status

Gets inbox status.

[JsonPropertyName("status")]
[JsonPropertyOrder(6)]
public InboxStatus Status { get; set; }

Property Value

InboxStatus

Inbox status.

UnreadEmailsCount

Gets unread emails count.

[JsonPropertyName("emails_unread_count")]
[JsonPropertyOrder(18)]
public long? UnreadEmailsCount { get; set; }

Property Value

long?

Unread emails count.

Used

Gets the flag indicating if inbox is used.

[JsonPropertyName("used")]
[JsonPropertyOrder(11)]
public bool? Used { get; set; }

Property Value

bool?

true if the inbox is used.
false otherwise.

UserName

Gets inbox user name.

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

Property Value

string

Inbox user name.