21 lines
455 B
C#
21 lines
455 B
C#
using MongoDB.Entities;
|
|||
|
|
|
||
|
|
namespace PrivaPub.Models.Federation
|
||
|
|
{
|
||
|
|
public class DomainBlock : Entity
|
||
|
|
{
|
||
|
|
public string Domain { get; set; }
|
||
|
|
public DomainBlockSeverity Severity { get; set; }
|
||
|
|
public bool RejectMedia { get; set; }
|
||
|
|
public string PublicComment { get; set; }
|
||
|
|
public string PrivateComment { get; set; }
|
||
|
|
public DateTime CreatedAt { get; set; } = DateTime.UtcNow;
|
||
|
|
}
|
||
|
|
|
||
|
|
public enum DomainBlockSeverity
|
||
|
|
{
|
||
|
|
None,
|
||
|
|
Silence,
|
||
|
|
Suspend
|
||
|
|
}
|
||
|
|
}
|