Add Ping backend
.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.
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
using Ping.Domain.Entities;
|
||||
using Ping.Domain.ValueObjects;
|
||||
|
||||
namespace Ping.Application.Channels.Responses
|
||||
{
|
||||
public record ChannelResponse(Guid Id, Guid? ServerId, string? Name, ChannelType Type, int Position)
|
||||
{
|
||||
public static ChannelResponse FromEntity(Channel channel) =>
|
||||
new(channel.Id, channel.ServerId, channel.Name, channel.Type, channel.Position);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user