25 lines
656 B
C#
25 lines
656 B
C#
using SPMS.Application.DTOs.Push;
|
|
|
|
namespace SPMS.Application.Interfaces;
|
|
|
|
public interface IFcmSender
|
|
{
|
|
Task<PushResultDto> SendAsync(
|
|
string fcmCredentialsJson,
|
|
string deviceToken,
|
|
string title,
|
|
string body,
|
|
string? imageUrl,
|
|
Dictionary<string, string>? data,
|
|
CancellationToken cancellationToken = default);
|
|
|
|
Task<List<PushResultDto>> SendBatchAsync(
|
|
string fcmCredentialsJson,
|
|
List<string> deviceTokens,
|
|
string title,
|
|
string body,
|
|
string? imageUrl,
|
|
Dictionary<string, string>? data,
|
|
CancellationToken cancellationToken = default);
|
|
}
|