Table of Contents

Class ForwardTestingMessageRequest

Namespace
Mailtrap.TestingMessages.Requests
Assembly
Mailtrap.Abstractions.dll

Request object for forwarding a message.

public sealed record ForwardTestingMessageRequest : IValidatable, IEquatable<ForwardTestingMessageRequest>
Inheritance
ForwardTestingMessageRequest
Implements

Constructors

ForwardTestingMessageRequest(string)

Primary instance constructor.

public ForwardTestingMessageRequest(string email)

Parameters

email string

Email address to forward email message to.

Properties

Email

Gets email to forward to.

[JsonPropertyName("email")]
[JsonPropertyOrder(1)]
public string Email { get; }

Property Value

string

Email to forward to.

Methods

Validate()

Validates the current instance.

public ValidationResult Validate()

Returns

ValidationResult

Object containing validation errors, if any.