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

import enum
import typing

T_Result = typing.TypeVar("T_Result")


class ClientFacingElectrocardiogramVoltageChangedEventType(str, enum.Enum):
    DAILY_DATA_ELECTROCARDIOGRAM_VOLTAGE_CREATED = "daily.data.electrocardiogram_voltage.created"
    DAILY_DATA_ELECTROCARDIOGRAM_VOLTAGE_UPDATED = "daily.data.electrocardiogram_voltage.updated"

    def visit(
        self,
        daily_data_electrocardiogram_voltage_created: typing.Callable[[], T_Result],
        daily_data_electrocardiogram_voltage_updated: typing.Callable[[], T_Result],
    ) -> T_Result:
        if self is ClientFacingElectrocardiogramVoltageChangedEventType.DAILY_DATA_ELECTROCARDIOGRAM_VOLTAGE_CREATED:
            return daily_data_electrocardiogram_voltage_created()
        if self is ClientFacingElectrocardiogramVoltageChangedEventType.DAILY_DATA_ELECTROCARDIOGRAM_VOLTAGE_UPDATED:
            return daily_data_electrocardiogram_voltage_updated()
