Files
decePubClient/Models/ReportForm.cs
T

18 lines
699 B
C#
Raw Normal View History

2026-10-06 16:47:19 +02:00
using System.ComponentModel.DataAnnotations;
using decePubClient.Models.Types;
using decePubClient.Resources;
namespace decePubClient.Models;
/// <summary>A report of an account, and of the post it was made from, as the report dialog edits it.</summary>
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; }
/// <summary>A copy to a remote account's own server, from PrivaPub's actor.</summary>
public bool Forward { get; set; } = true;
}