Files
aliasvault/apps/server/Shared/AliasVault.Shared/Models/Spamok/Base/EmailApiModelBase.cs
2025-05-13 16:47:16 +02:00

76 lines
2.4 KiB
C#

//-----------------------------------------------------------------------
// <copyright file="EmailApiModelBase.cs" company="lanedirt">
// Copyright (c) lanedirt. 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.Spamok.Base;
/// <summary>
/// Represents a mailbox email API model base.
/// </summary>
public abstract class EmailApiModelBase
{
/// <summary>
/// Gets or sets the ID of the email.
/// </summary>
public int Id { get; set; }
/// <summary>
/// Gets or sets the subject of the email.
/// </summary>
public string Subject { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the display name of the sender.
/// </summary>
public string FromDisplay { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the domain of the sender's email address.
/// </summary>
public string FromDomain { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the local part of the sender's email address.
/// </summary>
public string FromLocal { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the domain of the recipient's email address.
/// </summary>
public string ToDomain { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the local part of the recipient's email address.
/// </summary>
public string ToLocal { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the date of the email.
/// </summary>
public DateTime Date { get; set; }
/// <summary>
/// Gets or sets the system date of the email.
/// </summary>
public DateTime DateSystem { get; set; }
/// <summary>
/// Gets or sets the number of seconds ago the email was received.
/// </summary>
public double SecondsAgo { get; set; }
/// <summary>
/// Gets or sets the encrypted symmetric key which was used to encrypt the email message.
/// This key is encrypted with the public key of the user.
/// </summary>
public string EncryptedSymmetricKey { get; set; } = string.Empty;
/// <summary>
/// Gets or sets the public key of the user used to encrypt the symmetric key.
/// </summary>
public string EncryptionKey { get; set; } = string.Empty;
}