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

using System.ComponentModel.DataAnnotations;

namespace ShadowedRealms.Shared.DTOs.Kingdom
{
    /// <summary>
    /// Request DTO for KvK event creation
    /// </summary>
    public class KvKEventRequestDto
    {
        /// <summary>
        /// Type of KvK event to create
        /// </summary>
        [Required]
        [StringLength(50)]
        public string EventType { get; set; } = string.Empty;

        /// <summary>
        /// Opposing kingdoms for the event
        /// </summary>
        [Required]
        public List<int> OpposingKingdoms { get; set; } = new();

        /// <summary>
        /// Event scheduling preferences
        /// </summary>
        public DateTime? PreferredStartTime { get; set; }

        /// <summary>
        /// Event duration in hours
        /// </summary>
        [Range(1, 168)] // 1 hour to 1 week
        public int DurationHours { get; set; } = 72;

        /// <summary>
        /// Event-specific parameters
        /// </summary>
        public Dictionary<string, object>? EventParameters { get; set; }
    }
}