Files
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

21 lines
1.2 KiB
C#

using Govor.Domain.Common;
using Govor.Domain.Models.Reactions;
using SmartRes;
namespace Govor.Application.Reactions;
public interface IReactionPackService
{
Task<List<ReactionPack>> ListAsync(Guid userId, bool installedOnly = false, bool includeDisabled = false, int skip = 0, int take = 50);
Task<Result<ReactionPack, Error>> GetAsync(Guid packId, bool includeDisabled = false);
Task<Result<ReactionPack, Error>> GetSharedAsync(string shareCode);
Task<Result<ReactionItem, Error>> GetReactionAsync(Guid reactionId);
Task<Result<Unit, Error>> SubscribeAsync(Guid userId, Guid packId, bool subscribe);
Task<Result<ReactionPack, Error>> CreateAsync(Guid actorId, string name, string description);
Task<Result<ReactionPack, Error>> UpdateAsync(Guid actorId, Guid packId, string name, string description, bool enabled);
Task<Result<Unit, Error>> DisableAsync(Guid actorId, Guid packId);
Task<Result<ReactionItem, Error>> AddEmojiAsync(Guid actorId, Guid packId, string name, string emoji);
Task<Result<ReactionItem, Error>> AddMediaAsync(Guid actorId, Guid packId, string name, byte[] data, CancellationToken cancellationToken = default);
Task<Result<Unit, Error>> DisableReactionAsync(Guid actorId, Guid packId, Guid reactionId);
}