Add IMessageChannel and Line REST implementation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
namespace ROLAC.API.Services.Notifications;
|
||||
|
||||
/// <summary>Result of one Line REST call.</summary>
|
||||
public sealed record MessageSendResult(bool Success, string? Error);
|
||||
|
||||
/// <summary>Abstraction over a chat channel's send/reply (Line today; future channels later).</summary>
|
||||
public interface IMessageChannel
|
||||
{
|
||||
Task<MessageSendResult> PushToUserAsync(string externalId, string text, CancellationToken ct = default);
|
||||
Task<MessageSendResult> PushToGroupAsync(string externalId, string text, CancellationToken ct = default);
|
||||
Task<MessageSendResult> ReplyAsync(string replyToken, string text, CancellationToken ct = default);
|
||||
}
|
||||
Reference in New Issue
Block a user