/*
 * File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Player\ResourceSpendingResponseDto.cs
 * Created: 2025-10-23
 * Last Modified: 2025-10-23
 * Description: Response DTO for resource spending operations
 * Last Edit Notes: Individual file implementation for resource spending results
 */

namespace ShadowedRealms.Shared.DTOs.Player
{
    /// <summary>
    /// Response DTO for resource spending operations
    /// </summary>
    public class ResourceSpendingResponseDto
    {
        /// <summary>
        /// Player ID who spent resources
        /// </summary>
        public int PlayerId { get; set; }

        /// <summary>
        /// Resources spent by type
        /// </summary>
        public Dictionary<string, long> ResourcesSpent { get; set; } = new();

        /// <summary>
        /// Current resource balances after spending
        /// </summary>
        public Dictionary<string, long> RemainingBalances { get; set; } = new();

        /// <summary>
        /// Purpose or category of the spending
        /// </summary>
        public string SpendingCategory { get; set; } = string.Empty;

        /// <summary>
        /// Benefits or items received from spending
        /// </summary>
        public Dictionary<string, object> ItemsReceived { get; set; } = new();

        /// <summary>
        /// Cost reduction bonuses that were applied
        /// </summary>
        public Dictionary<string, decimal> CostReductions { get; set; } = new();

        /// <summary>
        /// Whether spending was successful
        /// </summary>
        public bool Success { get; set; }

        /// <summary>
        /// Transaction ID for tracking
        /// </summary>
        public string TransactionId { get; set; } = string.Empty;

        /// <summary>
        /// When resources were spent
        /// </summary>
        public DateTime SpendingTime { get; set; }

        /// <summary>
        /// Additional spending analytics data
        /// </summary>
        public Dictionary<string, object> SpendingAnalytics { get; set; } = new();
    }
}