o
    –l~iG  ã                   @   s\   d dl Z d dlmZ d dlmZ d dlmZ e  dd¡ZG dd„ deƒZ	G d	d
„ d
e	ƒZ
dS )é    N)ÚBasicAuthentication)ÚAuthorization)ÚModelResourceÚ
fcm_djangoÚ	fcmdevicec                   @   s   e Zd ZG dd„ dƒZdS )ÚFCMDeviceResourcec                   @   s    e Zd Zeƒ Zej ¡ ZdZ	dS )zFCMDeviceResource.Metazdevice/apnsN)
Ú__name__Ú
__module__Ú__qualname__r   ÚauthorizationÚ	FCMDeviceÚobjectsÚallÚquerysetÚresource_name© r   r   ú^/var/www/newdalilibackend/backend/venv/lib/python3.10/site-packages/fcm_django/api/tastypie.pyÚMeta
   s    
r   N)r   r	   r
   r   r   r   r   r   r   	   s    r   c                       s.   e Zd ZG dd„ dejƒZ‡ fdd„Z‡  ZS )ÚAPNSDeviceAuthenticatedResourcec                   @   s   e Zd Zeƒ ZdS )z$APNSDeviceAuthenticatedResource.MetaN)r   r	   r
   r   Úauthenticationr   r   r   r   r      s    
r   c                    s   t ƒ j|fd|jji|¤ŽS )NÚuser)ÚsuperÚ
obj_createÚrequestr   )ÚselfÚbundleÚkwargs©Ú	__class__r   r   r      s   z*APNSDeviceAuthenticatedResource.obj_create)r   r	   r
   r   r   r   Ú__classcell__r   r   r   r   r      s    r   )ÚswapperÚtastypie.authenticationr   Útastypie.authorizationr   Útastypie.resourcesr   Ú
load_modelr   r   r   r   r   r   r   Ú<module>   s    