o
    [=g                     @   s~   d dl mZ ddlmZmZmZ G dd dejZG dd dejZG dd	 d	ej	Z
G d
d dej	ZG dd dej	ZdS )    )serializers   )NotificationtypenotificationsNotificationReceiverc                   @   s,   e Zd ZejddZe ZejddZdS )EmailNotificationSerializerd   
max_lengthT)requiredN)	__name__
__module____qualname__r   	CharFieldsubjectmessage
EmailFieldrecipient_email r   r   </var/www/html/notificationserver/notification/serializers.pyr      s    r   c                   @   s(   e Zd ZejddZe Ze ZdS )AppNotificationSerializerr   r	   N)r   r   r   r   r   titler   recipient_idr   r   r   r   r   
   s    r   c                   @      e Zd ZG dd dZdS )NotificationtypeSerializerc                   @      e Zd ZeZddgZdS )zNotificationtypeSerializer.MetatypeidN)r   r   r   r   modelfieldsr   r   r   r   Meta       r    Nr   r   r   r    r   r   r   r   r          r   c                   @   r   )NotificationsSerializerc                   @   s   e Zd ZeZg dZdS )zNotificationsSerializer.Meta)notification_type	sender_idread_atdataN)r   r   r   r   r   r   r   r   r   r   r       r!   r    Nr"   r   r   r   r   r$      r#   r$   c                   @   s    e Zd Ze ZG dd dZdS )NotificationReceiverSerializerc                   @   r   )z#NotificationReceiverSerializer.Metauser_idnotificationN)r   r   r   r   r   r   r   r   r   r   r       r!   r    N)r   r   r   r   r+   r    r   r   r   r   r)      s    r)   N)rest_frameworkr   modelsr   r   r   
Serializerr   r   ModelSerializerr   r$   r)   r   r   r   r   <module>   s   