Files
Govor/Govor.Domain/Models/MediaFile.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

26 lines
626 B
C#

using Govor.Domain.Models.Messages;
namespace Govor.Domain.Models;
public class MediaFile
{
public Guid Id { get; set; }
public Guid UploaderId { get; set; }
public string Url { get; set; }
public MediaType MediaType { get; set; }
public string MineType { get; set; }
public DateTime DateCreated { get; set; }
public MediaOwnerType OwnerType { get; set; } = MediaOwnerType.Message;
public Guid? OwnerId { get; set; }
}
public enum MediaOwnerType
{
Message = 0,
Avatar = 1,
GroupAvatar = 2,
System = 3, // (Emoge, icons and other system assets)
Reaction = 4
}