sozsoft-platform/api/modules/Sozsoft.Notifications/Sozsoft.Notifications.Domain.Shared/NotificationConsts.cs

36 lines
1.2 KiB
C#
Raw Normal View History

2026-02-24 20:44:16 +00:00
namespace Sozsoft.Notifications.Domain;
public static class NotificationConsts
{
public const string AppName = "Notifications";
2026-09-21 06:57:02 +00:00
/// <summary>
/// Elle yapilan gonderimlerin bildirim tipi. Kural motorundan gecmeyen her bildirim bu tiple
2026-10-19 14:35:08 +00:00
/// yazilir; tip kaydi seed ile gelir (<c>Adm.Notifications.NotificationTypes.json</c>).
2026-09-21 06:57:02 +00:00
/// </summary>
public const string ManualTypeName = "Manuel";
2026-02-24 20:44:16 +00:00
}
public static class NotificationRecipientTypes
{
public const string User = "User";
public const string Role = "Role";
public const string OrganizationUnit = "OrganizationUnit";
public const string All = "All";
public const string Custom = "Custom";
}
2026-09-21 06:57:02 +00:00
/// <summary>
/// Manuel gonderimde mesaj icinde cozulen yer tutucular. Sablon metni bu anahtarlari tasir,
/// gonderim aninda her alici icin ayri ayri degistirilir.
/// </summary>
public static class NotificationMessageTokens
{
public const string FullName = "{AdSoyad}";
public const string UserName = "{KullaniciAdi}";
public const string Email = "{Eposta}";
public const string Date = "{Tarih}";
public const string Time = "{Saat}";
public const string Tenant = "{Kiraci}";
}