Table of Contents

Class ContactMailSuppressionEntity

Namespace
Tharga.Team.MongoDB
Assembly
Tharga.Team.MongoDB.dll

An address that opted out of contact mail, of one category or of all of it.

public record ContactMailSuppressionEntity : EntityBase, ISupportInitialize, IEquatable<PersistableEntityBase>, IEntity<ObjectId>, IEquatable<EntityBase<ObjectId>>, IEquatable<EntityBase>, IEquatable<ContactMailSuppressionEntity>
Inheritance
PersistableEntityBase
EntityBase<ObjectId>
EntityBase
ContactMailSuppressionEntity
Implements
IEquatable<PersistableEntityBase>
IEntity<ObjectId>
IEquatable<EntityBase<ObjectId>>
IEquatable<EntityBase>
Inherited Members
EntityBase.ToString()
EntityBase.GetHashCode()
EntityBase.Equals(EntityBase<ObjectId>)
EntityBase.Equals(EntityBase)
EntityBase.<Clone>$()
EntityBase.EqualityContract
EntityBase<ObjectId>.Equals(PersistableEntityBase)
EntityBase<ObjectId>.Id
PersistableEntityBase.NeedsCleaning()
PersistableEntityBase.BeginInit()
PersistableEntityBase.EndInit()
PersistableEntityBase.CatchAll

Properties

Address

The address, trimmed and in lower case.

public required string Address { get; init; }

Property Value

string

Category

The category's key, or * for every contact mail.

public required string Category { get; init; }

Property Value

string

Source

How it was asked for, stored by name.

[BsonRepresentation(BsonType.String)]
public required ContactMailSuppressionSource Source { get; init; }

Property Value

ContactMailSuppressionSource

SuppressedAt

When it was asked for, in UTC.

public required DateTime SuppressedAt { get; init; }

Property Value

DateTime