Method Create
- Namespace
- MailFathom.Application.Emails.ReplyDrafts
- Assembly
- MailFathom.Application.dll
Create(string, IReadOnlyList<StoredEmailId>)
Records one thing a draft asserts.
public static ReplyDraftClaim Create(string text, IReadOnlyList<StoredEmailId> sources)
Parameters
textstringWhat the draft asserts.
sourcesIReadOnlyList<StoredEmailId>The messages backing it, which is empty where the conversation backs none of it.
Returns
- ReplyDraftClaim
The claim, with the text shortened to its bound and the sources to theirs.
Exceptions
- ArgumentNullException
Thrown when
textorsourcesis null.- ArgumentException
Thrown when the text is blank.