using System.ComponentModel.DataAnnotations;
using decePubClient.Models.Types;
using decePubClient.Resources;
namespace decePubClient.Models;
/// A report of an account, and of the post it was made from, as the report dialog edits it.
public class ReportForm
{
public const int CommentLength = 1000;
public ReportCategory Category { get; set; } = ReportCategory.Other;
[StringLength(CommentLength, ErrorMessageResourceName = ValidationNames.MaxLength, ErrorMessageResourceType = typeof(ErrorMessages))]
public string Comment { get; set; }
/// A copy to a remote account's own server, from PrivaPub's actor.
public bool Forward { get; set; } = true;
}