TenantNotification.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System;
  2. using Abp.Application.Services.Dto;
  3. using Abp.Domain.Entities.Auditing;
  4. using Abp.Timing;
  5. namespace Abp.Notifications
  6. {
  7. /// <summary>
  8. /// Represents a published notification for a tenant/user.
  9. /// </summary>
  10. [Serializable]
  11. public class TenantNotification : EntityDto<Guid>, IHasCreationTime
  12. {
  13. /// <summary>
  14. /// Tenant Id.
  15. /// </summary>
  16. public int? TenantId { get; set; }
  17. /// <summary>
  18. /// Unique notification name.
  19. /// </summary>
  20. public string NotificationName { get; set; }
  21. /// <summary>
  22. /// Notification data.
  23. /// </summary>
  24. public NotificationData Data { get; set; }
  25. /// <summary>
  26. /// Gets or sets the type of the entity.
  27. /// </summary>
  28. public Type EntityType { get; set; }
  29. /// <summary>
  30. /// Name of the entity type (including namespaces).
  31. /// </summary>
  32. public string EntityTypeName { get; set; }
  33. /// <summary>
  34. /// Entity id.
  35. /// </summary>
  36. public object EntityId { get; set; }
  37. /// <summary>
  38. /// Severity.
  39. /// </summary>
  40. public NotificationSeverity Severity { get; set; }
  41. public DateTime CreationTime { get; set; }
  42. /// <summary>
  43. /// Initializes a new instance of the <see cref="TenantNotification"/> class.
  44. /// </summary>
  45. public TenantNotification()
  46. {
  47. CreationTime = Clock.Now;
  48. }
  49. }
  50. }