31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
using System;
|
|
using Volo.Abp.Domain.Entities.Auditing;
|
|
|
|
namespace Sozsoft.Notifications.Entities;
|
|
|
|
public class Notification : FullAuditedEntity<Guid>
|
|
{
|
|
public Guid NotificationRuleId { get; set; }
|
|
public required string NotificationChannel { get; set; }
|
|
public required Guid NotificationTypeId { get; set; }
|
|
public virtual NotificationType NotificationType { get; set; }
|
|
|
|
// Bildirim tipine göre bildirimi alacak olan hedef bilgisini içerir
|
|
public required string Identifier { get; set; } //UserId, Email, PhoneNumber..
|
|
public Guid? UserId { get; set; }
|
|
public required string Message { get; set; }
|
|
|
|
/// <summary>
|
|
/// Mail kanalinin konu satiri. Bos ise <c>NotificationWorker</c> konuyu bildirim tipinin
|
|
/// adindan uretir; kural motorundan gecen bildirimlerde bos kalir, manuel gonderimde
|
|
/// ekrandan ya da sablondan gelir.
|
|
/// </summary>
|
|
public string? Subject { get; set; }
|
|
|
|
public bool IsSent { get; set; }
|
|
public bool IsRead { get; set; }
|
|
public DateTime? ReadTime { get; set; }
|
|
|
|
public virtual NotificationRule NotificationRule { get; set; }
|
|
}
|
|
|