.NET 10 solution for Ping, a Discord style chat app: Domain, Application and Infrastructure projects plus the Api host. SignalR for chat and presence, LiveKit for call tokens, EF Core on Postgres, S3 compatible storage for attachments, and OIDC auth shared with the Musify Zitadel instance. Includes the Compose stack for local development.
18 lines
688 B
C#
18 lines
688 B
C#
using Ping.Application.Messages.Responses;
|
|
|
|
namespace Ping.Application.Contracts
|
|
{
|
|
public interface IRealtimeNotifier
|
|
{
|
|
Task MessageCreatedAsync(Guid channelId, MessageResponse message, CancellationToken cancellationToken);
|
|
|
|
Task MessageUpdatedAsync(Guid channelId, MessageResponse message, CancellationToken cancellationToken);
|
|
|
|
Task MessageDeletedAsync(Guid channelId, Guid messageId, CancellationToken cancellationToken);
|
|
|
|
Task FriendRequestReceivedAsync(long addresseeId, Guid friendshipId, CancellationToken cancellationToken);
|
|
|
|
Task FriendshipUpdatedAsync(long userId, Guid friendshipId, CancellationToken cancellationToken);
|
|
}
|
|
}
|