Table of Contents

Class TestingMessage

Namespace
Mailtrap.TestingMessages.Models
Assembly
Mailtrap.Abstractions.dll

Represents details of a message in inbox.

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

Properties

BlacklistsReportInfo

Gets blacklist report for the message.

[JsonPropertyName("blacklists_report_info")]
[JsonPropertyOrder(21)]
public BlacklistReport BlacklistsReportInfo { get; set; }

Property Value

BlacklistReport

Blacklist report for the message.

CreatedAt

Gets timestamp when the message was created.

[JsonPropertyName("created_at")]
[JsonPropertyOrder(10)]
public DateTimeOffset? CreatedAt { get; set; }

Property Value

DateTimeOffset?

Timestamp when the message was created.

DownloadPath

Gets download path for the message.

[JsonPropertyName("download_path")]
[JsonPropertyOrder(19)]
public string? DownloadPath { get; set; }

Property Value

string

Download path for the message.

EmailSize

Gets size of the message.

[JsonPropertyName("email_size")]
[JsonPropertyOrder(8)]
public long? EmailSize { get; set; }

Property Value

long?

Size of the message.

FromEmail

Gets email address of 'From' field of the message.

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

Property Value

string

Email address of 'From' field of the message.

FromName

Gets display name of 'From' field of the message.

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

Property Value

string

Display name of 'From' field of the message.

HtmlBodySize

Gets HTML body size of the message.

[JsonPropertyName("html_body_size")]
[JsonPropertyOrder(13)]
public long? HtmlBodySize { get; set; }

Property Value

long?

HTML body size of the message.

HtmlPath

Gets path to the HTML representation of the message.

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

Property Value

string

Path to the HTML representation of the message.

HtmlSourcePath

Gets path to the message HTML source.

[JsonPropertyName("html_source_path")]
[JsonPropertyOrder(20)]
public string? HtmlSourcePath { get; set; }

Property Value

string

Path to the message HTML source.

HumanSize

Gets human-friendly size of the message.

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

Property Value

string

Human-friendly size of the message.
E.g. '345 Bytes'.

Id

Gets message identifier.

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

Property Value

long

Message identifier.

InboxId

Gets message inbox identifier.

[JsonPropertyName("inbox_id")]
[JsonPropertyOrder(2)]
[JsonRequired]
public long InboxId { get; set; }

Property Value

long

Message inbox identifier.

IsRead

Gets flag indicating if the message was read.

[JsonPropertyName("is_read")]
[JsonPropertyOrder(9)]
public bool? IsRead { get; set; }

Property Value

bool?

true if the message was read.
false otherwise.

RawPath

Gets path to the raw representation of the message.

[JsonPropertyName("raw_path")]
[JsonPropertyOrder(18)]
public string? RawPath { get; set; }

Property Value

string

Path to the raw representation of the message.

SentAt

Gets timestamp when the message was sent.

[JsonPropertyName("sent_at")]
[JsonPropertyOrder(12)]
public DateTimeOffset? SentAt { get; set; }

Property Value

DateTimeOffset?

Timestamp when the message was sent.

SmtpInformation

Gets SMTP information for the message.

[JsonPropertyName("smtp_information")]
[JsonPropertyOrder(22)]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public SmtpInformation SmtpInformation { get; }

Property Value

SmtpInformation

SMTP information for the message.

Subject

Gets message subject.

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

Property Value

string

Message subject.

TextBodySize

Gets plain text body size of the message.

[JsonPropertyName("text_body_size")]
[JsonPropertyOrder(14)]
public long? TextBodySize { get; set; }

Property Value

long?

Plain text body size of the message.

TextPath

Gets path to the plain text representation of the message.

[JsonPropertyName("txt_path")]
[JsonPropertyOrder(17)]
public string? TextPath { get; set; }

Property Value

string

Path to the plain text representation of the message.

ToEmail

Gets email address of 'To' field of the message.

[JsonPropertyName("to_email")]
[JsonPropertyOrder(6)]
public string? ToEmail { get; set; }

Property Value

string

Email address of 'To' field of the message.

ToName

Gets display name of 'To' field of the message.

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

Property Value

string

Display name of 'To' field of the message.

UpdatedAt

Gets timestamp when the message was updated.

[JsonPropertyName("updated_at")]
[JsonPropertyOrder(11)]
public DateTimeOffset? UpdatedAt { get; set; }

Property Value

DateTimeOffset?

Timestamp when the message was updated.