Table of Contents

Interface IInboundInboxContentResource

Namespace
Mailtrap.Inbound
Assembly
Mailtrap.Abstractions.dll

Represents access to the messages, threads, and forward rules of an inbound inbox.

public interface IInboundInboxContentResource : IRestResource
Inherited Members

Methods

ForwardRule(long)

Gets the resource for a specific forward rule of this inbox, identified by forwardRuleId.

IInboundForwardRuleResource ForwardRule(long forwardRuleId)

Parameters

forwardRuleId long

ID of the forward rule to get resource for.

Returns

IInboundForwardRuleResource

Resource for the forward rule with the specified ID.

ForwardRules()

Gets the forward rule collection resource for this inbox.

IInboundForwardRuleCollectionResource ForwardRules()

Returns

IInboundForwardRuleCollectionResource

Forward rule collection resource for this inbox.

Message(string)

Gets the resource for a specific message in this inbox, identified by messageId.

IInboundMessageResource Message(string messageId)

Parameters

messageId string

ID of the message to get resource for.

Returns

IInboundMessageResource

Resource for the message with the specified ID.

Messages()

Gets the message collection resource for this inbox.

IInboundMessageCollectionResource Messages()

Returns

IInboundMessageCollectionResource

Message collection resource for this inbox.

Thread(string)

Gets the resource for a specific thread in this inbox, identified by threadId.

IInboundThreadResource Thread(string threadId)

Parameters

threadId string

ID of the thread to get resource for.

Returns

IInboundThreadResource

Resource for the thread with the specified ID.

Threads()

Gets the thread collection resource for this inbox.

IInboundThreadCollectionResource Threads()

Returns

IInboundThreadCollectionResource

Thread collection resource for this inbox.