o
    Žèdi^  ã                   @   sP   d dl Z d dlmZ G dd„ dƒZG dd„ dƒZG dd„ dƒZG d	d
„ d
ƒZdS )é    N)Úgettext_lazyc                   @   s2   e Zd ZdZdZg d¢Zg d¢ZdgZg d¢ZdS )ÚFileFieldConstantsaq  
    This class defines constants related to file formats.

    Attributes:
        FILE_SIZE (int): The maximum allowed file size (5 MB).
        IMAGE_FORMATS (list): Supported image formats.
        DOCUMENT_FORMATS (list): Supported document formats.
        VIDEO_FORMATS (list): Supported video formats.
        AUDIO_FORMATS (list): Supported audio formats.
    i  ð )ZpngÚjpgÚjpegZwebp)ÚdocZdocxZpdfZxlsxZxlsZmp4)Zmp3ZaacZwavN)	Ú__name__Ú
__module__Ú__qualname__Ú__doc__Z	FILE_SIZEZIMAGE_FORMATSZDOCUMENT_FORMATSZVIDEO_FORMATSZAUDIO_FORMATS© r   r   úI/var/www/html/evchargy.com/django-station-ev/station_ev/base/constants.pyr      s    r   c                   @   s&   e Zd ZdZd\ZZZedd„ ƒZdS )ÚAssetTypeConstantsa9  
    This class defines constants for asset types and their choices.

    Attributes:
        VIDEO (int): Asset type for videos.
        IMAGE (int): Asset type for images.
        AUDIO (int): Asset type for audio.

    Methods:
        get_asset_choices(): Get choices for asset types as a list of tuples.
    )é   é   é   c                 C   s,   | j tdƒf| jtdƒf| jtdƒfg}|S )z¡
        Get choices for asset types.

        Returns:
            list: A list of tuples containing asset type choices and their corresponding labels.
        ZVideoÚImageZAudio)ÚVIDEOÚ_ÚIMAGEÚAUDIO©ÚclsÚchoicesr   r   r   Úget_asset_choices(   s
   	ýz$AssetTypeConstants.get_asset_choicesN)	r   r   r	   r
   r   r   r   Úclassmethodr   r   r   r   r   r      s
    
r   c                   @   s8   e Zd ZdZd\ZZd\ZZedd„ ƒZ	edd„ ƒZ
dS )ÚStationConstantsa  
    This class defines constants for owner types and their choices.

    Attributes:
        USER (int): User type for Station.
        OWNER (int): User type for Station.

    Methods:
        get_asset_choices(): Get choices for owner types as a list of tuples.
    )r   r   c                 C   s    | j tdƒf| jtdƒfg}|S )z›
        Get choices for types.

        Returns:
            list: A list of tuples containing owner type choices and their corresponding labels.
        ÚUserZOwner)ÚUSERr   ÚOWNERr   r   r   r   Úget_choicesG   s   	þzStationConstants.get_choicesc                 C   s   | j tdƒf| jtdƒfgS )z¨
        Get choices for Status.

        Returns:
            list: A list of tuples containing Suggest Station Status choices and their corresponding labels.
        ZPendingÚClose)ÚPENDINGr   ÚCLOSE)r   r   r   r   Ú"get_suggest_station_request_statusU   s   	þz3StationConstants.get_suggest_station_request_statusN)r   r   r	   r
   r   r   r!   r"   r   r   r#   r   r   r   r   r   8   s    
r   c                   @   s   e Zd ZdZedd„ ƒZdS )ÚVehicleManufacturingYearz¥
    This class defines constants for owner types and their choices.

    Methods:
        get_choices(): Get choices for ManufacturingYear as a list of tuples.
    c                 C   s$   t j ¡ }dd„ td|jd ƒD ƒS )z•
        Get choices for types.

        Returns:
            list: A list of tuples containing year choices and their corresponding labels.
        c                 S   s   g | ]}||f‘qS r   r   )Ú.0Úrr   r   r   Ú
<listcomp>t   s    z8VehicleManufacturingYear.get_choices.<locals>.<listcomp>iÀ  r   )ÚdatetimeÚdateÚtodayÚrangeÚyear)r   r*   r   r   r   r   k   s   
z$VehicleManufacturingYear.get_choicesN)r   r   r	   r
   r   r   r   r   r   r   r$   c   s    r$   )r(   Údjango.utils.translationr   r   r   r   r   r$   r   r   r   r   Ú<module>   s    +