Table of Contents

Interface IInboundFolderCollectionResource

Namespace
Mailtrap.Inbound
Assembly
Mailtrap.Abstractions.dll

Represents the inbound folder collection resource.

public interface IInboundFolderCollectionResource : IRestResource
Inherited Members

Methods

Create(CreateInboundFolderRequest, CancellationToken)

Creates a new inbound folder with details specified by request.

Task<InboundFolder> Create(CreateInboundFolderRequest request, CancellationToken cancellationToken = default)

Parameters

request CreateInboundFolderRequest

Request containing folder details for creation.

cancellationToken CancellationToken
Token to control operation cancellation.

Returns

Task<InboundFolder>

Created folder details.

GetAll(CancellationToken)

Returns all inbound folders.

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

Parameters

cancellationToken CancellationToken

Token to control operation cancellation.

Returns

Task<IList<InboundFolder>>

Collection of inbound folders.