Table of Contents

Class CreateInboxRequest

Namespace
Mailtrap.Inboxes.Requests
Assembly
Mailtrap.Abstractions.dll

Request object for inbox create operation.

public sealed record CreateInboxRequest : InboxRequest, IEquatable<InboxRequest>, IEquatable<CreateInboxRequest>
Inheritance
CreateInboxRequest
Implements

Constructors

CreateInboxRequest(long, string)

Primary instance constructor.

public CreateInboxRequest(long projectId, string name)

Parameters

projectId long

ID of the project to create inbox for.

name string

Name of the inbox to create.

Exceptions

ArgumentNullException

When name is null or Empty.

Properties

Name

Gets inbox name.

[JsonPropertyName("name")]
[JsonPropertyOrder(1)]
public string Name { get; }

Property Value

string

Inbox name.

ProjectId

Gets project identifier for inbox creation.

[JsonIgnore]
public long ProjectId { get; }

Property Value

long

Project identifier for inbox creation.