/*
 * File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Alliance\CoalitionFormationRequestDto.cs
 * Created: 2025-10-22
 * Last Modified: 2025-10-22
 * Description: Request DTO for coalition formation operations
 * Last Edit Notes: Initial implementation for multi-alliance coalition creation input validation
 */

using System.ComponentModel.DataAnnotations;

namespace ShadowedRealms.Shared.DTOs.Alliance
{
    /// <summary>
    /// Request DTO for coalition formation operations
    /// </summary>
    public class CoalitionFormationRequestDto
    {
        /// <summary>
        /// Name for the new coalition
        /// </summary>
        [Required]
        [StringLength(100, MinimumLength = 3)]
        public string CoalitionName { get; set; } = string.Empty;

        /// <summary>
        /// Alliances to invite into the coalition
        /// </summary>
        [Required]
        [MinLength(2)]
        public List<int> InvitedAlliances { get; set; } = new();

        /// <summary>
        /// Coalition purpose and objectives
        /// </summary>
        [StringLength(500)]
        public string? Purpose { get; set; }

        /// <summary>
        /// Coalition leadership structure preferences
        /// </summary>
        public Dictionary<string, object>? LeadershipStructure { get; set; }

        /// <summary>
        /// Resource sharing and coordination settings
        /// </summary>
        public Dictionary<string, object>? CoordinationSettings { get; set; }

        /// <summary>
        /// Expected coalition duration (temporary, permanent, event-based)
        /// </summary>
        public Dictionary<string, object>? Duration { get; set; }

        /// <summary>
        /// Coalition formation conditions and requirements
        /// </summary>
        public Dictionary<string, object>? FormationConditions { get; set; }

        /// <summary>
        /// Invitation message to other alliances
        /// </summary>
        [StringLength(300)]
        public string? InvitationMessage { get; set; }
    }
}