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; } // listed at /api/v1/instance/domain_blocks, which tells the blocked server too (off by default); Obfuscate hides part // of its name there, as Mastodon does public bool Published { get; set; } public bool Obfuscate { get; set; } public DateTime CreatedAt { get; set; } = DateTime.UtcNow; } public enum DomainBlockSeverity { None, Silence, Suspend } }