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