Files
Govor/Govor.Contracts/Responses/ReactionPackResponse.cs
T
Artemy 29cc51ee0c Add reactions, reliable push & session checks
Implements message reactions and reaction packs (domain models, services, admin HTTP API, media processing via ImageSharp and limits) and adds reliable push delivery (ChatPushNotification, ChatPushDispatcher, ChatPushWorker, improved ChatNotificationService). Enhances message reading (ReadChat API, unread counts, concurrency-safe receipts) and tightens session security (access-token session validation in JWT, hub filter, SessionAuthorization). Improves SignalR behavior (session groups, reaction/channel events, hub/error mappings). Adds EF migrations, many controller fixes (Forbid handling, password API), tests (Govor.Server.Tests), docs, CI and tooling updates (Dockerfile → .NET 10, GH Actions matrix for sqlite/postgres, Govor.Server.slnx, global.json), and small infra changes (AutoMapper bump, NullPushProvider, storage/token handling).
2026-10-03 17:42:24 +07:00

36 lines
1.3 KiB
C#

using Govor.Domain.Models.Reactions;
namespace Govor.Contracts.Responses;
public class ReactionPackResponse
{
public Guid Id { get; set; }
public string Name { get; set; } = string.Empty;
public string Description { get; set; } = string.Empty;
public string ShareCode { get; set; } = string.Empty;
public string SharePath => $"/api/reaction-packs/shared/{ShareCode}";
public bool IsDefault { get; set; }
public bool IsEnabled { get; set; }
public Guid? CreatedByUserId { get; set; }
public DateTime CreatedAt { get; set; }
public List<ReactionItemResponse> Reactions { get; set; } = [];
}
public class ReactionItemResponse
{
public Guid Id { get; set; }
public Guid PackId { get; set; }
public string Code { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public ReactionKind Kind { get; set; }
public string? Emoji { get; set; }
public Guid? MediaFileId { get; set; }
public string? MediaUrl => MediaFileId.HasValue ? $"/api/media/download/{MediaFileId}" : null;
public int Width { get; set; }
public int Height { get; set; }
public int SizeBytes { get; set; }
public int DurationMilliseconds { get; set; }
public bool IsEnabled { get; set; }
public DateTime CreatedAt { get; set; }
}