
    soj                         d dl mZ  G d de          Zej        dej        dej        dej        diZded	efd
Z	d	e
e         fdZd	e
e         fdZded	efdZde
e         d	e
e         fdZdS )    )IntEnumc                       e Zd ZdZdZdZdZdS )PredictionStatus            N)__name__
__module____qualname__NEWSENTBETS_CLOSED
RESULT_SET     (/app/src/model/enums/PredictionStatus.pyr   r      s"        
CDKJJJr   r   NewOpenzBets closedz
Result setprediction_statusreturnc                     t           |          S N)PREDICTION_STATUS_NAME_MAP)r   s    r   !get_prediction_status_name_by_keyr      s    %&788r   c                  $    d t           D             S )Nc                 ,    g | ]}t          |          S r   )r   .0statuss     r   
<listcomp>z3get_all_prediction_status_names.<locals>.<listcomp>   s!    UUU&-f55UUUr   r   r   r   r   get_all_prediction_status_namesr#      s    UUDTUUUUr   c                  $    d t           D             S )Nc                 H    g | ]}|t           j        ut          |           S r   )r   r   r   r   s     r   r!   z6get_active_prediction_status_names.<locals>.<listcomp>   s9       )444 	*&11444r   r"   r   r   r   "get_active_prediction_status_namesr&      s#     &   r   namec                     t          t                                                    t          t                                                                        |                    S r   )listr   keysvaluesindex)r'   s    r   get_prediction_status_by_namer-   #   sJ    *//1122'..001177== r   namesc                     d | D             S )Nc                 ,    g | ]}t          |          S r   )r-   )r   r'   s     r   r!   z:get_prediction_status_by_list_of_names.<locals>.<listcomp>*   s!    BBBD)$//BBBr   r   )r.   s    r   &get_prediction_status_by_list_of_namesr1   )   s    BBEBBBBr   N)enumr   r   r   r   r   r   r   strr   r)   r#   r&   r-   r1   r   r   r   <module>r4      s2            w    %6 -	 99I 9c 9 9 9 9Vc V V V VDI     0@    C$s) CEU@V C C C C C Cr   