Introduced IUnsubscriptionService and replaced the usage in rendering page view model.

This commit is contained in:
Burak Kaan Köse
2024-05-02 00:21:29 +02:00
parent e8b07738a5
commit 11b652f851
4 changed files with 57 additions and 10 deletions

View File

@@ -0,0 +1,15 @@
using System.Threading.Tasks;
using Wino.Core.Domain.Models.Reader;
namespace Wino.Core.Domain.Interfaces
{
public interface IUnsubscriptionService
{
/// <summary>
/// Unsubscribes from the subscription using one-click method.
/// </summary>
/// <param name="info">Unsubscribtion information.</param>
/// <returns>Whether the unsubscription is succeeded or not.</returns>
Task<bool> OneClickUnsubscribeAsync(UnsubscribeInfo info);
}
}