Class ContactMailSuppression
- Namespace
- Tharga.Team
- Assembly
- Tharga.Team.dll
An address that asked not to receive contact mail: of one category, or of any contact mail from the product.
public sealed record ContactMailSuppression : IEquatable<ContactMailSuppression>
- Inheritance
-
ContactMailSuppression
- Implements
- Inherited Members
Remarks
Kept for good. It is the record that the person asked not to be mailed, and the only thing that keeps a later mailing from reaching them, so it does not expire with the mail it was made from.
Properties
Address
The address, trimmed and in lower case.
public required string Address { get; init; }
Property Value
Category
The contact category it stops, or null when it stops every contact mail to the address.
public string Category { get; init; }
Property Value
Source
How it was asked for.
public required ContactMailSuppressionSource Source { get; init; }
Property Value
SuppressedAt
When it was asked for, in UTC.
public required DateTime SuppressedAt { get; init; }
Property Value
Methods
AppliesTo(string)
Whether it stops mail in the category with this key.
public bool AppliesTo(string categoryKey)
Parameters
categoryKeystring