/*
 * File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Alliance\LeadershipElectionRequestDto.cs
 * Created: 2025-10-22
 * Last Modified: 2025-10-22
 * Description: Request DTO for alliance leadership election 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 leadership election operations
    /// </summary>
    public class LeadershipElectionRequestDto
    {
        /// <summary>
        /// Position to elect (Leader, Officer, Diplomat, etc.)
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Position { get; set; } = string.Empty;

        /// <summary>
        /// Election action (StartElection, Nominate, Vote, Withdraw, Challenge)
        /// </summary>
        [Required]
        [StringLength(50)]
        public string Action { get; set; } = string.Empty;

        /// <summary>
        /// Player being nominated or voted for
        /// </summary>
        public int? TargetPlayerId { get; set; }

        /// <summary>
        /// Vote choice (for voting actions)
        /// </summary>
        public int? VoteChoice { get; set; }

        /// <summary>
        /// Campaign platform or justification
        /// </summary>
        [StringLength(2000)]
        public string? Platform { get; set; }

        /// <summary>
        /// Qualifications being presented
        /// </summary>
        public Dictionary<string, object>? Qualifications { get; set; }

        /// <summary>
        /// Election duration in hours
        /// </summary>
        [Range(24, 168)]
        public int ElectionDurationHours { get; set; } = 72;

        /// <summary>
        /// Minimum participation required for valid election (percentage)
        /// </summary>
        [Range(25, 100)]
        public int MinimumParticipation { get; set; } = 50;

        /// <summary>
        /// Election parameters and special rules
        /// </summary>
        public Dictionary<string, object>? ElectionParameters { get; set; }
    }
}