Purchase DTOs (12 files): - Add Priority 1: PurchaseValidationRequestDto, RefundRequestDto, RefundResponseDto, FraudDetectionResponseDto - Add Priority 2: VipProgressionRequestDto, VipProgressionResponseDto, VipBenefitClaimRequestDto, VipBenefitClaimResponseDto - Add Priority 3: SkillAlternativesRequestDto, SkillAlternativesResponseDto, CompetitiveEffectivenessResponseDto, MonetizationHealthResponseDto Resolve remaining DTO compilation errors: - Add BuildingConstructionResponseDto for AllianceController - Add CombatPreparationRequestDto for PlayerController - Add ErrorViewModel for Admin project error handling Features implemented: * Complete Purchase system with ethical monetization support * Anti-pay-to-win mechanics ensuring 70% F2P competitive effectiveness * VIP progression with secret tier support and chargeback protection * Comprehensive fraud detection and spending behavior monitoring * Skill-based alternatives to premium purchases with achievement paths * Player protection measures and monetization health monitoring * Alliance building construction tracking with resource management * Player combat preparation with dragon integration and field interception All DTOs follow established patterns: - Proper file headers with creation dates and comprehensive descriptions - XML documentation for all properties with detailed summaries - Validation attributes on request DTOs following project conventions - Kingdom-scoped design considerations for horizontal scaling - Dictionary properties for extensible parameters and future enhancements - Production-ready structure supporting server-authoritative design principles
51 lines
1.6 KiB
C#
51 lines
1.6 KiB
C#
/*
|
|
* File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Admin\Models\ErrorViewModel.cs
|
|
* Created: 2025-10-23
|
|
* Last Modified: 2025-10-23
|
|
* Description: Error view model for Admin project error handling and display
|
|
* Last Edit Notes: Individual file implementation for ASP.NET Core MVC error handling in Admin dashboard
|
|
*/
|
|
|
|
namespace ShadowedRealms.Admin.Models
|
|
{
|
|
/// <summary>
|
|
/// View model for displaying error information in the Admin project
|
|
/// </summary>
|
|
public class ErrorViewModel
|
|
{
|
|
/// <summary>
|
|
/// Unique identifier for the current request
|
|
/// </summary>
|
|
public string? RequestId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Whether to show the request ID on the error page
|
|
/// </summary>
|
|
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
|
|
|
/// <summary>
|
|
/// Error message to display to the user
|
|
/// </summary>
|
|
public string? ErrorMessage { get; set; }
|
|
|
|
/// <summary>
|
|
/// HTTP status code for the error
|
|
/// </summary>
|
|
public int StatusCode { get; set; } = 500;
|
|
|
|
/// <summary>
|
|
/// Detailed error information (only shown in development)
|
|
/// </summary>
|
|
public string? DetailedError { get; set; }
|
|
|
|
/// <summary>
|
|
/// When the error occurred
|
|
/// </summary>
|
|
public DateTime ErrorTime { get; set; } = DateTime.UtcNow;
|
|
|
|
/// <summary>
|
|
/// Whether this error should be logged
|
|
/// </summary>
|
|
public bool ShouldLog { get; set; } = true;
|
|
}
|
|
} |