using System;
using Abp.Application.Services.Dto;
using Abp.Domain.Entities.Auditing;
using Abp.Timing;
namespace Abp.Notifications
{
///
/// Represents a published notification for a tenant/user.
///
[Serializable]
public class TenantNotification : EntityDto, IHasCreationTime
{
///
/// Tenant Id.
///
public int? TenantId { get; set; }
///
/// Unique notification name.
///
public string NotificationName { get; set; }
///
/// Notification data.
///
public NotificationData Data { get; set; }
///
/// Gets or sets the type of the entity.
///
public Type EntityType { get; set; }
///
/// Name of the entity type (including namespaces).
///
public string EntityTypeName { get; set; }
///
/// Entity id.
///
public object EntityId { get; set; }
///
/// Severity.
///
public NotificationSeverity Severity { get; set; }
public DateTime CreationTime { get; set; }
///
/// Initializes a new instance of the class.
///
public TenantNotification()
{
CreationTime = Clock.Now;
}
}
}