using System.Text.Json.Serialization;

namespace MarcusLaw.OutlookAddin.Core.Models
{
    /// <summary>
    /// A row from /api/v1/DocumentFolder — used to populate the folder
    /// dropdown in the "Save attachments" dialog. EspoCRM document folders
    /// are organizational labels independent of the document's parent link.
    /// </summary>
    public sealed class DocumentFolder
    {
        [JsonPropertyName("id")]
        public string Id { get; set; } = string.Empty;

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

        [JsonPropertyName("parentId")]
        public string? ParentId { get; set; }

        [JsonPropertyName("order")]
        public int? Order { get; set; }
    }
}
