2026-02-24 20:44:16 +00:00
|
|
|
|
using System;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
using Volo.Abp.Application.Dtos;
|
|
|
|
|
|
using Volo.Abp.Application.Services;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Sozsoft.Notifications.NotificationRules;
|
|
|
|
|
|
|
|
|
|
|
|
public interface INotificationRuleAppService : ICrudAppService<
|
|
|
|
|
|
NotificationRuleDto,
|
|
|
|
|
|
Guid,
|
|
|
|
|
|
PagedAndSortedResultRequestDto,
|
|
|
|
|
|
CreateUpdateNotificationRuleDto>
|
|
|
|
|
|
{
|
2026-09-20 20:23:39 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Kullanicinin kurallarina konu olan bildirim tipleri. Tercih ekrani satirlari bu tiplerden
|
|
|
|
|
|
/// kurar; eslesme ad uzerinden degil <c>Id</c> uzerinden yapilir.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Task<List<NotificationTypeDto>> GetMyNotificationTypesAsync();
|
|
|
|
|
|
|
2026-02-24 20:44:16 +00:00
|
|
|
|
Task<List<NotificationRuleDto>> GetMyNotificationRules();
|
2026-09-20 20:23:39 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Elle bildirim diyaloguna kuralin ozetini verir. Parametre adi <c>id</c> olamaz: ABP o adi
|
|
|
|
|
|
/// gorunce ucu <c>{id}</c> rotasina tasir ve cagri CRUD'un Get ucuna duserdi.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
Task<NotificationRuleSummaryDto> GetRuleSummaryAsync(Guid ruleId);
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>Kullanicinin bir tur/kanal icin kendi tercihini yazar.</summary>
|
2026-02-24 20:44:16 +00:00
|
|
|
|
Task PostMyNotificationRule(CreateUpdateNotificationRuleDto Input);
|
2026-09-20 20:23:39 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>Bir turdeki kullanici tercihlerini siler; kural yeniden varsayilana doner.</summary>
|
2026-05-11 09:37:52 +00:00
|
|
|
|
Task DeleteMyNotificationRules(Guid NotificationTypeId);
|
2026-02-24 20:44:16 +00:00
|
|
|
|
}
|
|
|
|
|
|
|