18 lines
699 B
C#
18 lines
699 B
C#
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;
|
||
|
|
}
|