Table of Contents

Class UserNotificationMappingSqlModel

Namespace
OpenSettings.Domains.Sql.Entities
Assembly
OpenSettings.dll

Represents a user-notification mapping entity.

[Table("UserNotificationMappings")]
public class UserNotificationMappingSqlModel : EntityBase<int>
Inheritance
UserNotificationMappingSqlModel
Inherited Members

Properties

CreatedBy

The user who created this user-notification mapping.

[ForeignKey("CreatedById")]
public virtual UserSqlModel CreatedBy { get; set; }

Property Value

UserSqlModel

CreatedById

The id of the user who created this user notification mapping.

public Guid? CreatedById { get; set; }

Property Value

Guid?

DismissedOn

Gets or sets the timestamp when the notification was dismissed. If the notification has not been dismissed, this value is null.

public DateTime? DismissedOn { get; set; }

Property Value

DateTime?

Id

[NotMapped]
public int Id { get; set; }

Property Value

int

IsDismissed

Gets or sets a value indicating whether the notification has been dismissed by the user.

public bool IsDismissed { get; set; }

Property Value

bool

IsOpened

Gets or sets a value indicating whether the notification has been opened.

public bool IsOpened { get; set; }

Property Value

bool

IsViewed

Gets or sets a value indicating whether the notification has been viewed. A notification is considered viewed if the user has seen it or interacted with it.

public bool IsViewed { get; set; }

Property Value

bool

Notification

The notification associated with this mapping.

[ForeignKey("NotificationId")]
public virtual NotificationSqlModel Notification { get; set; }

Property Value

NotificationSqlModel

NotificationId

The id of the associated notification.

public Guid NotificationId { get; set; }

Property Value

Guid

OpenedOn

Gets or sets the timestamp when the notification was opened. If the notification has not been opened, this value is null.

public DateTime? OpenedOn { get; set; }

Property Value

DateTime?

User

The user associated with this mapping.

[ForeignKey("UserId")]
public virtual UserSqlModel User { get; set; }

Property Value

UserSqlModel

UserId

The id of the associated user.

public Guid UserId { get; set; }

Property Value

Guid

ViewedOn

Gets or sets the timestamp when the notification was viewed. If the notification has not been viewed, this value is null.

public DateTime? ViewedOn { get; set; }

Property Value

DateTime?