C# Class O365_WinPhone_ArtCurator.MailHelper

MailHelper wraps the Office 365 SDK methods in a way that supports this app. It helps keep the Office 365 logic out of the page controllers.
显示文件 Open project: OfficeDev/O365-WinPhone-ArtCurator Class Usage Examples

Private Methods

Method Description
AddFileAttachmentAsync ( string MessageId, MemoryStream fileContent, string fileName ) : System.Threading.Tasks.Task

Method to add a file attachment to a saved draft.

ComposeAndSendMailAsync ( string subject, string bodyContent, string recipients ) : Task

Compose and send a new email.

Context_BuildingRequest ( object sender, Microsoft e ) : void

Event handler to add a cache parameter to the request URI to get new results every time.

CreateDraftAsync ( string Subject, string Body, string RecipientAddress ) : Task

Creates a draft message and stores it in Drafts.

GetMessagesAsync ( String folderId ) : Task>

Returns the emails from the target folder.

GetTargetFolderAsync ( String folderName ) : Task

Returns the folder ID where user recieves new art emails.

MarkAsReadAsync ( String messageId ) : Task

Marks the email as read.