using System.ComponentModel.DataAnnotations; using Microsoft.AspNetCore.Http; namespace Kyoo.Authentication.Models.DTO { /// /// A model only used on account update requests. /// public class AccountUpdateRequest { /// /// The new email address of the user /// [EmailAddress(ErrorMessage = "The email is invalid.")] public string Email { get; set; } /// /// The new username of the user. /// [MinLength(4, ErrorMessage = "The username must have at least 4 characters")] public string Username { get; set; } /// /// The picture icon. /// public IFormFile Picture { get; set; } } }