Search Results for

    Show / Hide Table of Contents

    Class MailService

    Inheritance
    object
    CrudServiceBase<GraphClient>
    MailService
    Implements
    ICrudService
    Inherited Members
    CrudServiceBase<GraphClient>.client
    CrudServiceBase<GraphClient>.ApiKey
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Glitch9.AIDevKit.Microsoft.Graph
    Assembly: Glitch9.AIDevKit.Provider.Microsoft.Graph.dll
    Syntax
    public sealed class MailService : CrudServiceBase<GraphClient>, ICrudService

    Constructors

    | Edit this page View Source

    MailService(GraphClient)

    Declaration
    public MailService(GraphClient client)
    Parameters
    Type Name Description
    GraphClient client

    Methods

    | Edit this page View Source

    ClearCache()

    Declaration
    public void ClearCache()
    | Edit this page View Source

    DeleteMessageAsync(string, CancellationToken)

    Declaration
    public UniTask DeleteMessageAsync(string messageId, CancellationToken ct = default)
    Parameters
    Type Name Description
    string messageId
    CancellationToken ct
    Returns
    Type Description
    UniTask
    | Edit this page View Source

    GetMessageAsync(string, bool, CancellationToken)

    Declaration
    public UniTask<MailMessage> GetMessageAsync(string messageId, bool includeBody, CancellationToken ct = default)
    Parameters
    Type Name Description
    string messageId
    bool includeBody
    CancellationToken ct
    Returns
    Type Description
    UniTask<MailMessage>
    | Edit this page View Source

    ListFoldersAsync(int, CancellationToken)

    Declaration
    public UniTask<GraphCollectionResponse<MailFolder>> ListFoldersAsync(int pageSize, CancellationToken ct = default)
    Parameters
    Type Name Description
    int pageSize
    CancellationToken ct
    Returns
    Type Description
    UniTask<GraphCollectionResponse<MailFolder>>
    | Edit this page View Source

    ListMessagesAsync(string, int, bool, bool?, DateTimeOffset?, DateTimeOffset?, string, CancellationToken)

    Declaration
    public UniTask<GraphCollectionResponse<MailMessage>> ListMessagesAsync(string folderId, int pageSize, bool includeBody, bool? isRead, DateTimeOffset? receivedFromUtc, DateTimeOffset? receivedToUtc, string containsText, CancellationToken ct = default)
    Parameters
    Type Name Description
    string folderId
    int pageSize
    bool includeBody
    bool? isRead
    DateTimeOffset? receivedFromUtc
    DateTimeOffset? receivedToUtc
    string containsText
    CancellationToken ct
    Returns
    Type Description
    UniTask<GraphCollectionResponse<MailMessage>>
    | Edit this page View Source

    MarkReadAsync(string, bool, CancellationToken)

    Declaration
    public UniTask<MailMessage> MarkReadAsync(string messageId, bool isRead, CancellationToken ct = default)
    Parameters
    Type Name Description
    string messageId
    bool isRead
    CancellationToken ct
    Returns
    Type Description
    UniTask<MailMessage>
    | Edit this page View Source

    MoveAsync(string, string, CancellationToken)

    Declaration
    public UniTask<MailMessage> MoveAsync(string messageId, string destinationFolderId, CancellationToken ct = default)
    Parameters
    Type Name Description
    string messageId
    string destinationFolderId
    CancellationToken ct
    Returns
    Type Description
    UniTask<MailMessage>
    | Edit this page View Source

    ReplyAsync(string, string, CancellationToken)

    Declaration
    public UniTask ReplyAsync(string messageId, string comment, CancellationToken ct = default)
    Parameters
    Type Name Description
    string messageId
    string comment
    CancellationToken ct
    Returns
    Type Description
    UniTask
    | Edit this page View Source

    SearchMessagesAsync(string, string, int, bool, CancellationToken)

    Declaration
    public UniTask<GraphCollectionResponse<MailMessage>> SearchMessagesAsync(string folderId, string query, int pageSize, bool includeBody, CancellationToken ct = default)
    Parameters
    Type Name Description
    string folderId
    string query
    int pageSize
    bool includeBody
    CancellationToken ct
    Returns
    Type Description
    UniTask<GraphCollectionResponse<MailMessage>>
    | Edit this page View Source

    SendMailAsync(MailSendEnvelope, CancellationToken)

    Declaration
    public UniTask SendMailAsync(MailSendEnvelope payload, CancellationToken ct = default)
    Parameters
    Type Name Description
    MailSendEnvelope payload
    CancellationToken ct
    Returns
    Type Description
    UniTask

    Implements

    ICrudService

    Extension Methods

    ArrayExtensions.ToArrayOrEmpty<T>(T)
    ArrayExtensions.ToArrayOrNull<T>(T)
    EventExtensions.ToDelta<T>(T, string, int, string, bool)
    EventExtensions.ToDone<T>(T, string, int, string)
    EventExtensions.ToEvent<T>(T)
    EventExtensions.UpcastDelta<T1, T2>(T1, string, int, string, bool)
    FallbackExtensions.IsOr<TParent, TChild>(TParent, TChild)
    ResponseCastingExtensions.GetResult<T>(T)
    SystemExtensions.GetName(object)
    • Edit this page
    • View Source
    In this article
    Back to top AI DevKit Documentation