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

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class ClientFacingBloodOxygenChangedEventType(str, enum.Enum):
    DAILY_DATA_BLOOD_OXYGEN_CREATED = "daily.data.blood_oxygen.created"
    DAILY_DATA_BLOOD_OXYGEN_UPDATED = "daily.data.blood_oxygen.updated"

    def visit(
        self,
        daily_data_blood_oxygen_created: typing.Callable[[], T_Result],
        daily_data_blood_oxygen_updated: typing.Callable[[], T_Result],
    ) -> T_Result:
        if self is ClientFacingBloodOxygenChangedEventType.DAILY_DATA_BLOOD_OXYGEN_CREATED:
            return daily_data_blood_oxygen_created()
        if self is ClientFacingBloodOxygenChangedEventType.DAILY_DATA_BLOOD_OXYGEN_UPDATED:
            return daily_data_blood_oxygen_updated()
