Add bot_decision and bot_reason to next and new game

This commit is contained in:
dylan
2025-04-12 21:57:05 +02:00
parent 22636070d7
commit da926fb8cb
2 changed files with 27 additions and 6 deletions

View File

@ -13,7 +13,7 @@ class GameStartResponseDTO(BaseModel):
score: int
class GameStartResponseWithBotDecisionDTO(BaseModel):
"""Response model for to send to frontend after a new game started."""
"""Response model to send to frontend after a new game started."""
message: str
session_id: UUID
player_id: str
@ -21,6 +21,7 @@ class GameStartResponseWithBotDecisionDTO(BaseModel):
client_data: Dict[str, Any]
score: int
bot_decision: Literal["Accept", "Reject"]
bot_reason: str
class GameDecisionResponseDTO(BaseModel):
@ -29,3 +30,12 @@ class GameDecisionResponseDTO(BaseModel):
score: int
client_id: Optional[UUID] = None
client_data: Optional[Dict[str, Any]] = None
class GameDecisionResponseWithBotDecisionDTO(BaseModel):
"""Response model to send to frontend after a game decision has been sent."""
status: str
score: int
client_id: Optional[UUID] = None
client_data: Optional[Dict[str, Any]] = None
bot_decision: Literal["Accept", "Reject"]
bot_reason: str