
    sojg                     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 )    )LegendaryPirate)User)TgRest)TgRestObjectTypec                   B     e Zd ZdZ	 	 ddededededed	ef fd
Z xZ	S ) TgRestLegendaryPirateAppointmentz_
    TgRestLegendaryPirateAppointment class is used to create a Telegram REST API request.
    NFbot_idobject_typeuser_idlegendary_pirate_iddaysis_permanentc                     t                                          ||           t          j        |          | _        t          j        |          | _        || _        || _        dS )a  
        Constructor

        :param user_id: The user id
        :param legendary_pirate_id: The legendary pirate id
        :param days: The number of days the user will be a legendary pirate
        :param is_permanent: Whether the appointment is permanent
        N)	super__init__r   	get_by_iduserr   legendary_pirater   r   )selfr	   r
   r   r   r   r   	__class__s          9/app/src/model/tgrest/TgRestLegendaryPirateAppointment.pyr   z)TgRestLegendaryPirateAppointment.__init__   sY    $ 	---.11	1@1JK^1_1_ $	".    )NF)
__name__
__module____qualname____doc__strr   intboolr   __classcell__)r   s   @r   r   r      s          "/ // &/ 	/
 !/ / / / / / / / / / / /r   r   N)	src.model.LegendaryPirater   src.model.Userr   src.model.tgrest.TgRestr   !src.model.tgrest.TgRestObjectTyper   r    r   r   <module>r&      s    5 5 5 5 5 5       * * * * * * > > > > > >/ / / / /v / / / / /r   