using System; using Abp.Domain.Entities.Auditing; using Abp.Timing; namespace Abp.Notifications { /// /// Represents a user subscription to a notification. /// public class NotificationSubscription : IHasCreationTime { /// /// Tenant id of the subscribed user. /// public int? TenantId { get; set; } /// /// User Id. /// public long UserId { get; set; } /// /// Notification unique name. /// public string NotificationName { get; set; } /// /// Entity type. /// public Type EntityType { get; set; } /// /// Name of the entity type (including namespaces). /// public string EntityTypeName { get; set; } /// /// Entity Id. /// public object EntityId { get; set; } public DateTime CreationTime { get; set; } /// /// Initializes a new instance of the class. /// public NotificationSubscription() { CreationTime = Clock.Now; } } }