mirror of
https://github.com/RedWizardsLab/EchoHub.git
synced 2026-09-06 23:34:13 +02:00
Add core models, DTOs, and services for EchoHub chat application
- Created User, Channel, Message, and ServerInfo models with necessary properties. - Added DTOs for user profiles, server information, and message handling. - Implemented JWT authentication service for user login and token generation. - Developed Entity Framework Core DbContext for database interactions. - Introduced SignalR ChatHub for real-time messaging and presence tracking. - Implemented file storage and image to ASCII conversion services. - Set up CORS and middleware for API endpoints. - Created launch settings and development configuration for server and web projects.
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using EchoHub.Core.Models;
|
||||
|
||||
namespace EchoHub.Core.DTOs;
|
||||
|
||||
public record UserProfileDto(
|
||||
Guid Id,
|
||||
string Username,
|
||||
string? DisplayName,
|
||||
string? Bio,
|
||||
string? NicknameColor,
|
||||
string? AvatarAscii,
|
||||
UserStatus Status,
|
||||
string? StatusMessage,
|
||||
DateTimeOffset CreatedAt,
|
||||
DateTimeOffset LastSeenAt);
|
||||
|
||||
public record UpdateProfileRequest(
|
||||
string? DisplayName = null,
|
||||
string? Bio = null,
|
||||
string? NicknameColor = null);
|
||||
|
||||
public record UpdateStatusRequest(
|
||||
UserStatus Status,
|
||||
string? StatusMessage = null);
|
||||
|
||||
public record UserPresenceDto(
|
||||
string Username,
|
||||
string? DisplayName,
|
||||
string? NicknameColor,
|
||||
UserStatus Status,
|
||||
string? StatusMessage);
|
||||
Reference in New Issue
Block a user