Table of Contents

Class UserNoticePreferenceEntity

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

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
PersistableEntityBase
EntityBase<ObjectId>
EntityBase
UserNoticePreferenceEntity
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

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

UserNoticeDelivery?

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

string

UpdatedAt

When the choice was last made, in UTC.

public DateTime UpdatedAt { get; init; }

Property Value

DateTime

UserKey

The user's key.

public required string UserKey { get; init; }

Property Value

string