Phase 6: GameGetLobbyHandler + CustomLobbyDetailDto
- game.custom.get returns full CustomLobbyDetailDto: all effective rules (overrides merged with GameRules.Default), host/guest account IDs, status, GameSessionId. - CustomLobbyDetailDto includes Status string, GuestAccountId (nullable), GameSessionId (nullable); richer than the browse-list CustomLobbyDto. - GetCustomLobbyRequest / GetCustomLobbyResponse added to GameMessages.cs. - ServiceRegistration: registered GameGetLobbyHandler as transient IMessageHandler. Generated with [Claude Code](https://claude.ai/code) via [Happy](https://happy.engineering) Co-Authored-By: Claude <noreply@anthropic.com> Co-Authored-By: Happy <yesreply@happy.engineering>
This commit is contained in:
@@ -124,6 +124,9 @@ public sealed record JoinCustomLobbyRequest(Guid LobbyId, Guid DeckId, string? P
|
||||
/// <summary>Leave or cancel a custom lobby.</summary>
|
||||
public sealed record LeaveCustomLobbyRequest(Guid LobbyId);
|
||||
|
||||
/// <summary>Fetch full details for a specific custom lobby.</summary>
|
||||
public sealed record GetCustomLobbyRequest(Guid LobbyId);
|
||||
|
||||
// ── Preset requests ───────────────────────────────────────────────────────────
|
||||
|
||||
/// <summary>Save the current lobby's rule overrides as a named preset (participants only).</summary>
|
||||
@@ -207,6 +210,8 @@ public sealed record JoinCustomLobbyResponse(
|
||||
|
||||
public sealed record LeaveCustomLobbyResponse(Guid LobbyId);
|
||||
|
||||
public sealed record GetCustomLobbyResponse(CustomLobbyDetailDto Lobby);
|
||||
|
||||
// ── Preset responses ──────────────────────────────────────────────────────────
|
||||
|
||||
public sealed record SavePresetResponse(Guid PresetId, string Name);
|
||||
@@ -395,6 +400,20 @@ public sealed record CustomLobbyDto(
|
||||
CustomRulesDto Rules,
|
||||
DateTimeOffset CreatedAt);
|
||||
|
||||
/// <summary>
|
||||
/// Detailed view of a custom lobby, including full rule set and participant presence.
|
||||
/// Returned by game.custom.get.
|
||||
/// </summary>
|
||||
public sealed record CustomLobbyDetailDto(
|
||||
Guid LobbyId,
|
||||
string LobbyName,
|
||||
string Status, // Open | Full | Started | Cancelled
|
||||
Guid HostAccountId,
|
||||
Guid? GuestAccountId,
|
||||
CustomRulesDto Rules,
|
||||
DateTimeOffset CreatedAt,
|
||||
Guid? GameSessionId);
|
||||
|
||||
public sealed record CustomRulesDto(
|
||||
int OpeningHandSize,
|
||||
bool FirstPlayerSkipsDraw,
|
||||
|
||||
Reference in New Issue
Block a user