- Created 17 Player DTOs for PlayerController compilation resolution - Created 24 Combat DTOs for CombatController compilation resolution - Full support for field interception system and anti-pay-to-win mechanics - Comprehensive dragon integration with skills and equipment DTOs - Proper validation attributes and extensible Dictionary properties - Complete XML documentation and established file header format Player DTOs: UpdatePlayerProfileRequestDto, PlayerRankingsResponseDto, CastleInfoResponseDto, VipAdvancementRequestDto/ResponseDto, ResourceCollectionResponseDto, ResourceSpendingRequestDto/ResponseDto, CombatResultsRequestDto/ResponseDto, AllianceJoinResponseDto, AllianceLeaveRequestDto/ResponseDto, ExperienceProcessingResponseDto, AchievementsResponseDto, ActionValidationRequestDto/ResponseDto Combat DTOs: FieldInterceptionResponseDto, InterceptionValidationRequestDto/ResponseDto, OptimalRoutesResponseDto, RouteOptimizationRequestDto, MarchInitiationResponseDto, MarchSpeedRequestDto, MarchCancellationResponseDto, MarchArrivalRequestDto/ResponseDto, BattleExecutionRequestDto, BattlePredictionRequestDto/ResponseDto, CasualtyProcessingRequestDto/ResponseDto, RewardDistributionRequestDto/ResponseDto, DragonValidationResponseDto, DragonSkillRequestDto/ResponseDto, DragonEquipmentRequestDto/ResponseDto, CombatEffectivenessResponseDto, KingdomTrendsResponseDto Resolves PlayerController and CombatController compilation errors.
66 lines
2.1 KiB
C#
66 lines
2.1 KiB
C#
/*
|
|
* 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();
|
|
}
|
|
} |