feat(rendering): display description, system, duration, format, type and location in Telegram game card
This commit is contained in:
@@ -154,7 +154,11 @@ public sealed class CreateSessionHandler(
|
||||
command.MaxPlayers,
|
||||
command.Link,
|
||||
command.Format,
|
||||
command.LocationAddress));
|
||||
command.LocationAddress,
|
||||
command.Description,
|
||||
command.System?.ToString(),
|
||||
command.DurationMinutes,
|
||||
command.IsOneShot));
|
||||
}
|
||||
|
||||
await transaction.CommitAsync(ct);
|
||||
|
||||
@@ -7,5 +7,9 @@ public sealed record SessionBatchDto(
|
||||
int? MaxPlayers,
|
||||
string JoinLink,
|
||||
string? Format = null,
|
||||
string? LocationAddress = null);
|
||||
string? LocationAddress = null,
|
||||
string? Description = null,
|
||||
string? System = null,
|
||||
int? DurationMinutes = null,
|
||||
bool IsOneShot = false);
|
||||
public sealed record ParticipantBatchDto(Guid SessionId, string DisplayName, string? TelegramUsername, string RegistrationStatus);
|
||||
|
||||
@@ -41,6 +41,10 @@ public static class SessionBatchViewBuilder
|
||||
session.JoinLink,
|
||||
session.Format,
|
||||
session.LocationAddress,
|
||||
session.Description,
|
||||
session.System,
|
||||
session.DurationMinutes,
|
||||
session.IsOneShot,
|
||||
activePlayers.Count,
|
||||
activePlayers,
|
||||
waitlistedPlayers,
|
||||
|
||||
@@ -14,6 +14,10 @@ public sealed record SessionViewItem(
|
||||
string JoinLink,
|
||||
string? Format,
|
||||
string? LocationAddress,
|
||||
string? Description,
|
||||
string? System,
|
||||
int? DurationMinutes,
|
||||
bool IsOneShot,
|
||||
int ActivePlayerCount,
|
||||
IReadOnlyList<PlayerViewItem> ActivePlayers,
|
||||
IReadOnlyList<PlayerViewItem> WaitlistedPlayers,
|
||||
|
||||
Reference in New Issue
Block a user