using System.Text.Json.Serialization;

namespace MarcusLaw.OutlookAddin.Core.Models
{
    /// <summary>
    /// Response from POST /api/v1/Attachment — the server returns at least
    /// the new attachment's id, which we then thread into a Document create.
    /// </summary>
    public sealed class AttachmentEntity
    {
        [JsonPropertyName("id")]
        public string Id { get; set; } = string.Empty;

        [JsonPropertyName("name")]
        public string? Name { get; set; }

        [JsonPropertyName("type")]
        public string? Type { get; set; }
    }
}
