mirror of
https://github.com/Theodor-Springmann-Stiftung/hamann-ausgabe-core.git
synced 2025-10-30 09:45:32 +00:00
Added a lot of stuff
This commit is contained in:
@@ -1,16 +1,55 @@
|
||||
namespace HaWeb.Models;
|
||||
using HaDocument.Models;
|
||||
|
||||
using System.Web;
|
||||
public class BriefeMetaViewModel
|
||||
{
|
||||
public Meta Meta { get; private set; }
|
||||
public bool HasMarginals { get; private set; }
|
||||
public bool ShowZHData { get; private set; }
|
||||
public bool HasText { get; set; } = true;
|
||||
|
||||
private string? _ParsedSenders;
|
||||
private string? _ParsedReceivers;
|
||||
private string? _ParsedZHString;
|
||||
|
||||
public string? ParsedSenders
|
||||
{
|
||||
get => _ParsedSenders;
|
||||
set
|
||||
{
|
||||
if (value != null)
|
||||
_ParsedSenders = HttpUtility.HtmlEncode(value);
|
||||
else
|
||||
_ParsedSenders = value;
|
||||
}
|
||||
}
|
||||
|
||||
public string? ParsedReceivers
|
||||
{
|
||||
get => _ParsedReceivers;
|
||||
set
|
||||
{
|
||||
if (value != null)
|
||||
_ParsedReceivers = HttpUtility.HtmlEncode(value);
|
||||
else
|
||||
_ParsedReceivers = value;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public string? ParsedZHString
|
||||
{
|
||||
get => _ParsedZHString;
|
||||
set
|
||||
{
|
||||
if (value != null)
|
||||
_ParsedZHString = HttpUtility.HtmlEncode(value);
|
||||
else
|
||||
_ParsedZHString = value;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public string? ParsedSenders { get; set; }
|
||||
public string? ParsedReceivers { get; set; }
|
||||
public string? ParsedZHString { get; set; }
|
||||
|
||||
public (BriefeMetaViewModel, string)? Next { get; set; }
|
||||
public (BriefeMetaViewModel, string)? Prev { get; set; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user