
    }f                     b    d dl mZ d dlZd dlmZ d dlmZmZ d dlmZ d dl	m
Z
  G d de      Zy)	    )	BaseAlarmN)Union)datetime	timedelta)CustomAlarmSerializer)CustomAlarmParserc                   p     e Zd ZdZ G d d      Z	 	 	 	 ddeeef   dedede	d	df
 fd
Z
ed        Z xZS )CustomAlarmz5
    A calendar event VALARM with custom ACTION.
    c                       e Zd ZdZeZeZy)CustomAlarm.MetaVALARMN)__name__
__module____qualname__namer   parserr   
serializer     O/var/www/feuerwehr-webapp/venv/lib/python3.12/site-packages/ics/alarm/custom.pyMetar      s    "*
r   r   Ntriggerrepeatdurationactionreturnc                 6    t         |   |||       || _        y N)super__init___action)selfr   r   r   r   	__class__s        r   r    zCustomAlarm.__init__   s     	&(3r   c                     | j                   S r   )r!   )r"   s    r   r   zCustomAlarm.action   s    ||r   )NNNN)r   r   r   __doc__r   r   r   r   intstrr    propertyr   __classcell__)r#   s   @r   r
   r
   
   ss    + + /3"	y(*+	 	 		
 	 
	  r   r
   )ics.alarm.baser   copytypingr   r   r    ics.serializers.alarm_serializerr   ics.parsers.alarm_parserr   r
   r   r   r   <module>r/      s#    $   ( B 6) r   