Table of Contents

Class CreateContactRequest

Namespace
Mailtrap.Contacts.Requests
Assembly
Mailtrap.Abstractions.dll

Request object for creating a contact.

public sealed record CreateContactRequest : ContactRequest, IValidatable, IEquatable<ContactRequest>, IEquatable<CreateContactRequest>
Inheritance
CreateContactRequest
Implements
Inherited Members

Constructors

CreateContactRequest(string)

Primary instance constructor.

public CreateContactRequest(string email)

Parameters

email string

Email of the contact.

Remarks

Contact's email must be min 2 characters and max 100 characters long.

Exceptions

ArgumentNullException

When email is null or Empty.

Properties

ListIds

Gets contact list IDs.

[JsonPropertyName("list_ids")]
public IList<int> ListIds { get; }

Property Value

IList<int>

Contact list IDs.