mirror of
https://github.com/onyx-and-iris/vmr-http.git
synced 2026-04-06 09:59:11 +00:00
14 lines
432 B
Python
14 lines
432 B
Python
"""Models for the parameters of a bus."""
|
|
|
|
from typing import Optional
|
|
|
|
from pydantic import BaseModel, Field
|
|
|
|
|
|
class BusParams(BaseModel):
|
|
"""Parameters for a single bus."""
|
|
|
|
gain: Optional[float] = Field(None, ge=-60.0, le=12.0, description='Gain value for the bus')
|
|
mute: Optional[bool] = Field(None, description='Mute status for the bus')
|
|
mono: Optional[int] = Field(None, description='Mono status for the bus')
|