/*
 * File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Combat\RewardDistributionRequestDto.cs
 * Created: 2025-10-23
 * Last Modified: 2025-10-23
 * Description: Request DTO for combat reward distribution
 * Last Edit Notes: Individual file implementation for reward distribution input validation
 */

using System.ComponentModel.DataAnnotations;

namespace ShadowedRealms.Shared.DTOs.Combat
{
    /// <summary>
    /// Request DTO for combat reward distribution
    /// </summary>
    public class RewardDistributionRequestDto
    {
        /// <summary>
        /// Combat log ID for reward calculation
        /// </summary>
        [Required]
        [Range(1, int.MaxValue)]
        public int CombatLogId { get; set; }

        /// <summary>
        /// Player ID to calculate rewards for
        /// </summary>
        [Required]
        [Range(1, int.MaxValue)]
        public int PlayerId { get; set; }

        /// <summary>
        /// Battle outcome achieved
        /// </summary>
        [Required]
        [StringLength(50)]
        public string BattleOutcome { get; set; } = string.Empty;

        /// <summary>
        /// Player's performance metrics in battle
        /// </summary>
        [Required]
        public Dictionary<string, object> PerformanceMetrics { get; set; } = new();

        /// <summary>
        /// Whether to apply VIP reward bonuses
        /// </summary>
        public bool ApplyVipBonuses { get; set; } = true;

        /// <summary>
        /// Whether to apply alliance reward bonuses
        /// </summary>
        public bool ApplyAllianceBonuses { get; set; } = true;

        /// <summary>
        /// Dragon participation bonuses to include
        /// </summary>
        public Dictionary<string, object> DragonBonuses { get; set; } = new();

        /// <summary>
        /// Equipment reward bonuses active
        /// </summary>
        public Dictionary<string, decimal> EquipmentBonuses { get; set; } = new();

        /// <summary>
        /// Event or seasonal multipliers to apply
        /// </summary>
        public Dictionary<string, decimal> EventMultipliers { get; set; } = new();

        /// <summary>
        /// Maximum reward caps if applicable
        /// </summary>
        public Dictionary<string, long>? RewardCaps { get; set; }

        /// <summary>
        /// Whether this is part of a KvK event
        /// </summary>
        public bool IsKvKEvent { get; set; } = false;

        /// <summary>
        /// Additional reward calculation parameters
        /// </summary>
        public Dictionary<string, object> RewardParameters { get; set; } = new();
    }
}