Skip to content

Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.

1.0 KB
Raw Blame
//-----------------------------------------------------------------------
// <copyright file="MailboxApiModel.cs" company="aliasvault">
// Copyright (c) aliasvault. All rights reserved.
// Licensed under the AGPLv3 license. See LICENSE.md file in the project root for full license information.
// </copyright>
//-----------------------------------------------------------------------

namespace AliasVault.Shared.Models.WebApi.V1.Email;

/// <summary>
/// Represents a mailbox API model of the AliasVault V1 email API.
/// </summary>
public class MailboxApiModel
{
    /// <summary>
    /// Gets or sets the address of the mailbox.
    /// </summary>
    public string Address { get; set; } = string.Empty;

    /// <summary>
    /// Gets or sets a value indicating whether the mailbox is subscribed.
    /// </summary>
    public bool Subscribed { get; set; }

    /// <summary>
    /// Gets or sets the list of mailbox email API models.
    /// </summary>
    public List<MailboxEmailApiModel> Mails { get; set; } = [];
}