"""Glucose Service implementation."""

from __future__ import annotations

from typing import ClassVar

from ..characteristics.registry import CharacteristicName
from .base import BaseGattService


class GlucoseService(BaseGattService):
    """Glucose Service implementation (0x1808).

    Used for glucose monitoring devices including continuous glucose
    monitors (CGMs) and traditional glucose meters. Provides
    comprehensive glucose measurement data with context and device
    capabilities.
    """

    service_characteristics: ClassVar[dict[CharacteristicName, bool]] = {
        CharacteristicName.GLUCOSE_MEASUREMENT: True,
        CharacteristicName.GLUCOSE_FEATURE: True,
        CharacteristicName.GLUCOSE_MEASUREMENT_CONTEXT: False,
        CharacteristicName.RECORD_ACCESS_CONTROL_POINT: True,
    }
