
    soj                     R    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 )    )User)Warlord)TgRest)TgRestObjectTypec            
       8     e Zd ZdZdededededef
 fdZ xZS )TgRestWarlordAppointmentzW
    TgRestWarlordAppointment class is used to create a Telegram REST API request.
    bot_idobject_typeuser_id
warlord_iddaysc                     t                                          ||           t          j        |          | _        t          j        |          | _        || _        dS )a1  
        Constructor

        :param user_id: The user id
        :param warlord_id: The warlord id
        :param days: The number of days the user will be a warlord. Technically not necessary since it can be calculated
                     from the end date, but it's easier to just pass it in.
        N)super__init__r   	get_by_iduserr   warlordr   )selfr	   r
   r   r   r   	__class__s         1/app/src/model/tgrest/TgRestWarlordAppointment.pyr   z!TgRestWarlordAppointment.__init__   sM     	---.11	 ' 1* = =			    )	__name__
__module____qualname____doc__strr   intr   __classcell__)r   s   @r   r   r      so         (8CFTW_b         r   r   N)	src.model.Userr   src.model.Warlordr   src.model.tgrest.TgRestr   !src.model.tgrest.TgRestObjectTyper   r    r   r   <module>r$      s          % % % % % % * * * * * * > > > > > >    v     r   