
    soj                     j    d dl m Z  d dlmZ d dlmZ d dlmZ d dlmZ d dl	m
Z
  G d de          Zd	S )
    )datetime)User)ImpelDownBountyAction)ImpelDownSentenceType)TgRest)TgRestObjectTypec                   Z     e Zd ZdZ	 ddedededededed	ed
edz  f fdZ	de
fdZ xZS )TgRestImpelDownNotificationzZ
    TgRestImpelDownNotification class is used to create a Telegram REST API request.
    Nbot_idobject_typeuser_idsentence_typerelease_date_timebounty_actionreasonlog_idc	                 B   t                                          ||           t          j        t          j        |k              | _        t          |          | _        |rt          j	        |d          nd| _
        t          |          | _        || _        || _        dS )a  
        Constructor

        :param user_id: The user id
        :param sentence_type: The sentence type
        :param release_date_time: The release date time
        :param bounty_action: The bounty action
        :param reason: The reason
        :param log_id: The log id
        z%Y-%m-%d %H:%M:%SN)super__init__r   getiduserr   r   r   strptimer   r   r   r   r   )
selfr   r   r   r   r   r   r   r   	__class__s
            4/app/src/model/tgrest/TgRestImpelDownNotification.pyr   z$TgRestImpelDownNotification.__init__   s    , 	---HTW/00	4I-4X4X !H/1DEEE 	
 5J-4X4X!!    returnc                 V    | j         t          j        k    o| j        t          j        k    S )zu
        Returns true if the restrictions are removed

        :return: True if the restrictions are removed
        )r   r   NONEr   r   )r   s    r   restriction_removedz/TgRestImpelDownNotification.restriction_removed2   s-     "7"<< A"&;&@@	
r   )N)__name__
__module____qualname____doc__strr   intr   r   r   boolr!   __classcell__)r   s   @r   r
   r
   
   s          "!" !"!" &!" 	!"
 -!" !" -!" !" d
!" !" !" !" !" !"F	
T 	
 	
 	
 	
 	
 	
 	
 	
r   r
   N)r   src.model.Userr   0src.model.enums.impel_down.ImpelDownBountyActionr   0src.model.enums.impel_down.ImpelDownSentenceTyper   src.model.tgrest.TgRestr   !src.model.tgrest.TgRestObjectTyper   r
    r   r   <module>r0      s                R R R R R R R R R R R R * * * * * * > > > > > >1
 1
 1
 1
 1
& 1
 1
 1
 1
 1
r   