/*
 * File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Kingdom\VotingRequestDto.cs
 * Created: 2025-10-19
 * Last Modified: 2025-10-19
 * Description: Request DTO for democratic voting operations
 * Last Edit Notes: Individual file implementation for democratic voting input validation
 */

using System.ComponentModel.DataAnnotations;

namespace ShadowedRealms.Shared.DTOs.Kingdom
{
    /// <summary>
    /// Request DTO for democratic voting operations
    /// </summary>
    public class VotingRequestDto
    {
        /// <summary>
        /// Type of vote being cast
        /// </summary>
        [Required]
        [StringLength(50)]
        public string VoteType { get; set; } = string.Empty;

        /// <summary>
        /// ID of the item being voted on
        /// </summary>
        [Required]
        [Range(1, int.MaxValue)]
        public int VoteItemId { get; set; }

        /// <summary>
        /// Vote choice (Yes/No, candidate ID, etc.)
        /// </summary>
        [Required]
        [StringLength(100)]
        public string VoteChoice { get; set; } = string.Empty;

        /// <summary>
        /// Optional reasoning for the vote
        /// </summary>
        [StringLength(500)]
        public string? VoteReasoning { get; set; }
    }
}