Table of Contents

Class UserMessageEntity

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

A message staff sent to users, as the sent log records it.

public record UserMessageEntity : EntityBase, ISupportInitialize, IEquatable<PersistableEntityBase>, IEntity<ObjectId>, IEquatable<EntityBase<ObjectId>>, IEquatable<EntityBase>, IEquatable<UserMessageEntity>
Inheritance
PersistableEntityBase
EntityBase<ObjectId>
EntityBase
UserMessageEntity
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

AttachmentCount

How many files it carried.

public int AttachmentCount { get; init; }

Property Value

int

Category

The category's key.

public required string Category { get; init; }

Property Value

string

MessageId

The message's id, which is the id of the batch its mails were queued in; unique.

public required string MessageId { get; init; }

Property Value

string

RecipientCount

How many users it reached when it was sent.

public int RecipientCount { get; init; }

Property Value

int

Recipients

The selection as it was chosen.

public required UserMessageRecipientsEntity Recipients { get; init; }

Property Value

UserMessageRecipientsEntity

SentAt

When it was sent, in UTC; the retention period runs from here.

public DateTime SentAt { get; init; }

Property Value

DateTime

SentByName

The name of whoever sent it.

[BsonIgnoreIfNull]
public string SentByName { get; init; }

Property Value

string

SentByUserKey

The key of the user who sent it, or null.

[BsonIgnoreIfNull]
public string SentByUserKey { get; init; }

Property Value

string

Subject

The subject line.

public required string Subject { get; init; }

Property Value

string