Préparation API pour detection TypingState

This commit is contained in:
2025-09-28 22:31:51 +02:00
parent fdc0f04cbb
commit 3b175900c1
63 changed files with 1252 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
using System;
using MareSynchronos.API.Data;
using MareSynchronos.API.Data.Enum;
using MessagePack;
namespace MareSynchronos.API.Dto.Group;
[MessagePackObject(keyAsPropertyName: true)]
public record GroupInfoDto(GroupData Group, UserData Owner, GroupPermissions GroupPermissions) : GroupDto(Group)
{
public GroupPermissions GroupPermissions { get; set; } = GroupPermissions;
public UserData Owner { get; set; } = Owner;
public string OwnerUID => Owner.UID;
public string? OwnerAlias => Owner.Alias;
public string OwnerAliasOrUID => Owner.AliasOrUID;
public bool IsTemporary { get; set; }
public DateTime? ExpiresAt { get; set; }
}