Add DTO that contains decision from bot as well as the previous DTO (hard-coded bot decision for now)

This commit is contained in:
dylan
2025-04-12 21:36:09 +02:00
parent 470aba5990
commit 3f9de128be
2 changed files with 23 additions and 2 deletions

View File

@ -1,5 +1,5 @@
from pydantic import BaseModel
from typing import Dict, Optional, Any
from typing import Dict, Optional, Any, Literal
from uuid import UUID
@ -12,6 +12,16 @@ class GameStartResponseDTO(BaseModel):
client_data: Dict[str, Any]
score: int
class GameStartResponseWithBotDecisionDTO(BaseModel):
"""Response model for to send to frontend after a new game started."""
message: str
session_id: UUID
player_id: str
client_id: UUID
client_data: Dict[str, Any]
score: int
bot_decision: Literal["Accept", "Reject"]
class GameDecisionResponseDTO(BaseModel):
"""Response model for a game decision result."""