# This file was auto-generated by Fern from our API Definition.

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class ClientFacingSleepBreathingDisturbanceChangedEventType(str, enum.Enum):
    DAILY_DATA_SLEEP_BREATHING_DISTURBANCE_CREATED = "daily.data.sleep_breathing_disturbance.created"
    DAILY_DATA_SLEEP_BREATHING_DISTURBANCE_UPDATED = "daily.data.sleep_breathing_disturbance.updated"

    def visit(
        self,
        daily_data_sleep_breathing_disturbance_created: typing.Callable[[], T_Result],
        daily_data_sleep_breathing_disturbance_updated: typing.Callable[[], T_Result],
    ) -> T_Result:
        if self is ClientFacingSleepBreathingDisturbanceChangedEventType.DAILY_DATA_SLEEP_BREATHING_DISTURBANCE_CREATED:
            return daily_data_sleep_breathing_disturbance_created()
        if self is ClientFacingSleepBreathingDisturbanceChangedEventType.DAILY_DATA_SLEEP_BREATHING_DISTURBANCE_UPDATED:
            return daily_data_sleep_breathing_disturbance_updated()
