Table of Contents

Class InboundMessagesListResponse

Namespace
Mailtrap.Inbound.Responses
Assembly
Mailtrap.Abstractions.dll

Response for listing inbound messages.

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

Properties

Data

Gets the page of messages.

[JsonPropertyName("data")]
[JsonObjectCreationHandling(JsonObjectCreationHandling.Populate)]
public IList<InboundMessage> Data { get; }

Property Value

IList<InboundMessage>

Page of messages.

LastId

Gets or sets the pagination cursor to pass as lastId for the next page, or null when there are no more pages.

[JsonPropertyName("last_id")]
public string? LastId { get; set; }

Property Value

string

Pagination cursor, or null when there are no more pages.

TotalCount

Gets or sets the total number of messages in the inbox.

[JsonPropertyName("total_count")]
public int TotalCount { get; set; }

Property Value

int

Total number of messages in the inbox.