/*
 * File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Alliance\ResearchAdvancementResponseDto.cs
 * Created: 2025-10-22
 * Last Modified: 2025-10-22
 * Description: Response DTO for alliance research advancement operations
 * Last Edit Notes: Initial implementation for research tree progression results
 */

namespace ShadowedRealms.Shared.DTOs.Alliance
{
    /// <summary>
    /// Response DTO for alliance research advancement operations
    /// </summary>
    public class ResearchAdvancementResponseDto
    {
        /// <summary>
        /// Alliance identifier conducting research
        /// </summary>
        public int AllianceId { get; set; }

        /// <summary>
        /// Research advancement success status
        /// </summary>
        public bool Success { get; set; }

        /// <summary>
        /// Advancement result message
        /// </summary>
        public string Message { get; set; } = string.Empty;

        /// <summary>
        /// Research project that was advanced
        /// </summary>
        public Dictionary<string, object> ResearchProject { get; set; } = new();

        /// <summary>
        /// New research level achieved
        /// </summary>
        public int NewLevel { get; set; }

        /// <summary>
        /// Previous research level
        /// </summary>
        public int PreviousLevel { get; set; }

        /// <summary>
        /// Benefits unlocked by this advancement
        /// </summary>
        public List<Dictionary<string, object>> UnlockedBenefits { get; set; } = new();

        /// <summary>
        /// Resource costs for the advancement
        /// </summary>
        public Dictionary<string, long> AdvancementCosts { get; set; } = new();

        /// <summary>
        /// Alliance members who contributed to research
        /// </summary>
        public List<Dictionary<string, object>> Contributors { get; set; } = new();

        /// <summary>
        /// Next available research opportunities
        /// </summary>
        public List<Dictionary<string, object>> NextResearchOptions { get; set; } = new();

        /// <summary>
        /// Research advancement timestamp
        /// </summary>
        public DateTime AdvancedAt { get; set; }

        /// <summary>
        /// Estimated time for next research level
        /// </summary>
        public TimeSpan? EstimatedNextAdvancement { get; set; }

        /// <summary>
        /// Alliance-wide bonuses gained from advancement
        /// </summary>
        public Dictionary<string, object> AllianceBonuses { get; set; } = new();
    }
}