from dataclasses import dataclass
from typing import List, Optional


@dataclass
class RoutineResponse:
    option_record: List[int]
    delay: int
    start_response: List[int]
    stop_response: Optional[List[int]]
    results_response: Optional[List[int]]


@dataclass
class Routine:
    name: str
    identifier: int
    responses: List[RoutineResponse]
    security_levels: List[int]
    actions: List
    debug_swallow_response_likeliness: float
    ignore_option_record: bool = False
