Class UserNoticePreferenceEntity
One user's choice for one notice, each part stored only where it differs from a default in force for them.
public record UserNoticePreferenceEntity : EntityBase, ISupportInitialize, IEquatable<PersistableEntityBase>, IEntity<ObjectId>, IEquatable<EntityBase<ObjectId>>, IEquatable<EntityBase>, IEquatable<UserNoticePreferenceEntity>
- Inheritance
-
PersistableEntityBaseEntityBase<ObjectId>EntityBaseUserNoticePreferenceEntity
- Implements
-
IEquatable<PersistableEntityBase>IEntity<ObjectId>IEquatable<EntityBase>
- Inherited Members
-
EntityBase.ToString()EntityBase.GetHashCode()EntityBase.Equals(EntityBase<ObjectId>)EntityBase.Equals(EntityBase)EntityBase.<Clone>$()EntityBase.EqualityContractEntityBase<ObjectId>.Equals(PersistableEntityBase)EntityBase<ObjectId>.IdPersistableEntityBase.NeedsCleaning()PersistableEntityBase.BeginInit()PersistableEntityBase.EndInit()PersistableEntityBase.CatchAll
Properties
Delivery
How the user receives it, stored by name, or null to follow the default.
[BsonIgnoreIfNull]
[BsonRepresentation(BsonType.String)]
public UserNoticeDelivery? Delivery { get; init; }
Property Value
Enabled
Whether the user receives the notice, or null to follow the default.
[BsonIgnoreIfNull]
public bool? Enabled { get; init; }
Property Value
- bool?
NoticeKey
The notice's key.
public required string NoticeKey { get; init; }
Property Value
UpdatedAt
When the choice was last made, in UTC.
public DateTime UpdatedAt { get; init; }
Property Value
UserKey
The user's key.
public required string UserKey { get; init; }