14b9bf15f2
- SessionBatchViewBuilder в Shared собирает нейтральную view model - TelegramSessionBatchRenderer в Bot/Web рендерит HTML + InlineKeyboardMarkup - DiscordSessionBatchRenderer заглушка подготовлена - BatchMessageEditor перенесён из Shared в Bot/Web - Удалён SessionBatchRenderer, убран Telegram.Bot из Shared.csproj - Обновлены все вызовы (7 handler-ов + Web SessionService + smoke tests) - Новые тесты на builder и Telegram renderer
28 lines
707 B
C#
28 lines
707 B
C#
using GmRelay.Shared.Domain;
|
|
|
|
namespace GmRelay.Shared.Rendering;
|
|
|
|
public sealed record SessionBatchViewModel(
|
|
string Title,
|
|
IReadOnlyList<SessionViewItem> Sessions);
|
|
|
|
public sealed record SessionViewItem(
|
|
Guid SessionId,
|
|
DateTime ScheduledAt,
|
|
string Status,
|
|
int? MaxPlayers,
|
|
int ActivePlayerCount,
|
|
IReadOnlyList<PlayerViewItem> ActivePlayers,
|
|
IReadOnlyList<PlayerViewItem> WaitlistedPlayers,
|
|
IReadOnlyList<AvailableAction> AvailableActions);
|
|
|
|
public sealed record PlayerViewItem(
|
|
string DisplayName,
|
|
string? TelegramUsername,
|
|
string RegistrationStatus);
|
|
|
|
public sealed record AvailableAction(
|
|
string ActionKey,
|
|
string Label,
|
|
Guid SessionId);
|