using System.ComponentModel.DataAnnotations;

namespace Models.Requests
{
    public sealed class ContactRequest
    {
        [Required, StringLength(100)]
        public string Name { get; set; } = "";

        [Required, EmailAddress, StringLength(200)]
        public string Email { get; set; } = "";

        [Required, StringLength(200)]
        public string Subject { get; set; } = "";

        [Required, StringLength(5000)]
        public string Message { get; set; } = "";

        // Token returned by the captcha widget
        [Required]
        public string CaptchaToken { get; set; } = "";
    }
}
