Table of Contents

Interface IInboundForwardRuleCollectionResource

Namespace
Mailtrap.Inbound
Assembly
Mailtrap.Abstractions.dll

Represents the forward rule collection resource for an inbound inbox.

public interface IInboundForwardRuleCollectionResource : IRestResource
Inherited Members

Methods

Create(CreateInboundForwardRuleRequest, CancellationToken)

Creates a new forward rule on the inbox with details specified by request.

Task<InboundForwardRule> Create(CreateInboundForwardRuleRequest request, CancellationToken cancellationToken = default)

Parameters

request CreateInboundForwardRuleRequest

Request containing forward rule details for creation.

cancellationToken CancellationToken
Token to control operation cancellation.

Returns

Task<InboundForwardRule>

Created forward rule details.

GetAll(CancellationToken)

Returns all forward rules of the inbox.

Task<IList<InboundForwardRule>> GetAll(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

Token to control operation cancellation.

Returns

Task<IList<InboundForwardRule>>

Collection of forward rules of the inbox.