Interface IInboxResource
Represents inbox resource.
public interface IInboxResource : IRestResource
- Inherited Members
Methods
Clean(CancellationToken)
Delete all messages (emails) from the inbox, represented by the current resource instance.
Task<Inbox> Clean(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken- Token to control operation cancellation.
Returns
Delete(CancellationToken)
Deletes the inbox, represented by the current resource instance, with all its emails.
Task<Inbox> Delete(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken- Token to control operation cancellation.
Returns
Remarks
All emails in the inbox will be deleted as well.
After deletion of the inbox, represented by the current resource instance, it will be no longer available.
Thus any further operations on it will result in an error.
GetDetails(CancellationToken)
Gets details of the inbox, represented by the current resource instance.
Task<Inbox> GetDetails(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationTokenToken to control operation cancellation.
Returns
MarkAsRead(CancellationToken)
Marks all messages (emails) in the inbox, represented by the current resource instance, as read.
Task<Inbox> MarkAsRead(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken- Token to control operation cancellation.
Returns
Message(long)
Gets resource for specific testing message, identified by messageId
,
in the inbox, represented by this resource instance.
ITestingMessageResource Message(long messageId)
Parameters
messageId
longID of message to get resource for.
Returns
- ITestingMessageResource
Resource for the testing message with specified ID.
Exceptions
- ArgumentOutOfRangeException
When
messageId
is less than or equal to zero.
Messages()
Gets testing message collection resource for the inbox, represented by this resource instance.
ITestingMessageCollectionResource Messages()
Returns
- ITestingMessageCollectionResource
Testing message collection resource for the inbox, represented by this resource instance.
ResetCredentials(CancellationToken)
Resets SMTP credentials of the inbox, represented by the current resource instance.
Task<Inbox> ResetCredentials(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken- Token to control operation cancellation.
Returns
ResetEmailAddress(CancellationToken)
Resets username of email address of the inbox, represented by the current resource instance.
Task<Inbox> ResetEmailAddress(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken- Token to control operation cancellation.
Returns
ToggleEmailAddress(CancellationToken)
Turns the email address of the inbox, represented by the current resource instance, ON or OFF.
Task<Inbox> ToggleEmailAddress(CancellationToken cancellationToken = default)
Parameters
cancellationToken
CancellationToken- Token to control operation cancellation.
Returns
Update(UpdateInboxRequest, CancellationToken)
Updates the inbox, represented by the current resource instance, with details specified by request
.
Task<Inbox> Update(UpdateInboxRequest request, CancellationToken cancellationToken = default)
Parameters
request
UpdateInboxRequestInbox details for update.
cancellationToken
CancellationToken- Token to control operation cancellation.