/*
 * File: D:\shadowed-realms-mobile\ShadowedRealmsMobile\src\server\ShadowedRealms.Shared\DTOs\Player\AllianceJoinRequestDto.cs
 * Created: 2025-10-19
 * Last Modified: 2025-10-19
 * Description: Request DTO for alliance join operations
 * Last Edit Notes: Individual file implementation for alliance join input validation
 */

using System.ComponentModel.DataAnnotations;

namespace ShadowedRealms.Shared.DTOs.Player
{
    /// <summary>
    /// Request DTO for alliance join operations
    /// </summary>
    public class AllianceJoinRequestDto
    {
        /// <summary>
        /// Alliance to join
        /// </summary>
        [Required]
        [Range(1, int.MaxValue)]
        public int AllianceId { get; set; }

        /// <summary>
        /// Optional message to alliance leadership
        /// </summary>
        [StringLength(500)]
        public string? Message { get; set; }

        /// <summary>
        /// Player's preferred role if accepted
        /// </summary>
        [StringLength(50)]
        public string? PreferredRole { get; set; }
    }
}