/*
 * File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Alliance\TerritoryDefenseRequestDto.cs
 * Created: 2025-10-22
 * Last Modified: 2025-10-22
 * Description: Request DTO for alliance territory defense operations
 * Last Edit Notes: Initial creation following established Alliance DTO patterns
 */

using System.ComponentModel.DataAnnotations;

namespace ShadowedRealms.Shared.DTOs.Alliance
{
    /// <summary>
    /// Request DTO for alliance territory defense operations
    /// </summary>
    public class TerritoryDefenseRequestDto
    {
        /// <summary>
        /// Territory to defend
        /// </summary>
        [Required]
        public int TerritoryId { get; set; }

        /// <summary>
        /// Type of defense operation (Prepare, Reinforce, Evacuate, CounterAttack)
        /// </summary>
        [Required]
        [StringLength(50)]
        public string DefenseType { get; set; } = string.Empty;

        /// <summary>
        /// Forces to deploy for defense
        /// </summary>
        public Dictionary<string, int> ForceDeployment { get; set; } = new();

        /// <summary>
        /// Coalition allies to request support from
        /// </summary>
        public List<int> CoalitionSupportRequest { get; set; } = new();

        /// <summary>
        /// Defense strategy and tactics
        /// </summary>
        [StringLength(500)]
        public string? DefenseStrategy { get; set; }

        /// <summary>
        /// Priority level for this defense (1-5)
        /// </summary>
        [Range(1, 5)]
        public int Priority { get; set; } = 4;

        /// <summary>
        /// Resources to allocate for defense
        /// </summary>
        public Dictionary<string, decimal> ResourceAllocation { get; set; } = new();

        /// <summary>
        /// Whether to use emergency protocols
        /// </summary>
        public bool UseEmergencyProtocols { get; set; } = false;

        /// <summary>
        /// Defense parameters and special conditions
        /// </summary>
        public Dictionary<string, object>? DefenseParameters { get; set; }
    }
}