Add DTO that contains decision from bot as well as the previous DTO (hard-coded bot decision for now)
This commit is contained in:
@ -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."""
|
||||
|
Reference in New Issue
Block a user