
    |i                        S SK Jr  S SKJr  SSK7  SSK7  S SK7  SSK7  SSK7   " S S\R                  5      r
 " S S\\R                  5      r " S	 S
\\R                  5      r " S S\R                  5      r " S S\R                  5      r " S S\R$                  5      r " S S\R(                  5      r " S S\R                  5      r " S S\R                  5      rg)    )generics)JsonResponse   )*c                       \ rS rSr/ rS rSrg)SendNotificationMobile   c                     UR                   nSU;   a9  US   nUS   nUS   nUS   nUS:X  a  [        XVU5        OUS:X  a  [        XVU5        [        S0 0SS	9$ )
NdeviceTokentitlebodydeviceOSTypeandroidiosdataF)safe)r   send_push_notification_androidsend_push_notification_iosr   )	selfrequestargskwargsr   r   r   r   r   s	            e/Users/waleedhassanin/Documents/GitHub/snow_flake_back_end_deploy/mama_care_api/notification/views.pypostSendNotificationMobile.post   sn    ||D }-KME<D/Ly(.{4H&*;tDVBKu55     N)__name__
__module____qualname____firstlineno__querysetr   __static_attributes__r   r   r   r   r      s    H6r   r   c                       \ rS rSr\\/r\/rSS/r	\
r\R                  R                  5       R                  S5      r\rSrg)UserDeviceListMobileView   parentIddeviceOSTypeId-idr   N)r   r   r    r!   APIKeyAuthenticationMobileTokenAuthenticationauthentication_classesDjangoFilterBackendfilter_backendsfilterset_fieldsStandardSetPaginationpagination_class
UserDeviceobjectsallorder_byr"   UserDeviceSerializerserializer_classr#   r   r   r   r%   r%      sM    24MN*+O"#34,!!%%'007H+r   r%   c                   |    \ rS rSr\\/r\/rSr	\
R                  R                  5       R                  S5      r\rSrg)UserDeviceDetailMobileView%   idr)   r   N)r   r   r    r!   r*   r+   r,   r-   r.   lookup_fieldr2   r3   r4   r5   r"   r6   r7   r#   r   r   r   r9   r9   %   s@    24MN*+OL!!%%'007H+r   r9   c                   ^    \ rS rSr\\/r\/r\	r
\R                  R                  5       r\rSrg)UserDeviceListDashboardView,   r   N)r   r   r    r!   r*   DashboardTokenAuthenticationr,   r-   r.   r0   r1   r2   r3   r4   r"   r6   r7   r#   r   r   r   r>   r>   ,   s6    24PQ*+O,!!%%'H+r   r>   c                   ^    \ rS rSr\\/r\/rSr	\
R                  R                  5       r\rSrg)UserDeviceDetailDashboardView3   r;   r   N)r   r   r    r!   r*   r@   r,   r-   r.   r<   r2   r3   r4   r"   r6   r7   r#   r   r   r   rB   rB   3   s5    24PQ*+OL!!%%'H+r   rB   c                   d    \ rS rSr\\/r\/rS/r	\
r\R                  R                  5       r\rSrg)NotificationListMobileView<   userDeviceIdr   N)r   r   r    r!   r*   r+   r,   r-   r.   r/   r0   r1   Notificationr3   r4   r"   NotificationSerializerr7   r#   r   r   r   rE   rE   <   s?    24MN*+O&',##'')H-r   rE   c                   ^    \ rS rSr\\/r\/rSr	\
R                  R                  5       r\rSrg)NotificationDetailMobileViewD   r;   r   N)r   r   r    r!   r*   r+   r,   r-   r.   r<   rH   r3   r4   r"   rI   r7   r#   r   r   r   rK   rK   D   s5    24MN*+OL##'')H-r   rK   c                   ^    \ rS rSr\\/r\/r\	r
\R                  R                  5       r\rSrg)NotificationListDashboardViewK   r   N)r   r   r    r!   r*   r@   r,   r-   r.   r0   r1   rH   r3   r4   r"   rI   r7   r#   r   r   r   rN   rN   K   s6    24PQ*+O,##'')H-r   rN   c                   ^    \ rS rSr\\/r\/rSr	\
R                  R                  5       r\rSrg)NotificationDetailDashboardViewR   r;   r   N)r   r   r    r!   r*   r@   r,   r-   r.   r<   rH   r3   r4   r"   rI   r7   r#   r   r   r   rQ   rQ   R   s5    24PQ*+OL##'')H-r   rQ   N)rest_frameworkr   django.httpr   apnsfcmcommon.viewsmodelsserializersGenericAPIViewr   SubscriptionPlanMixinListCreateAPIViewr%   RetrieveUpdateDestroyAPIViewr9   r>   rB   ListAPIViewrE   UpdateAPIViewrK   rN   rQ   r   r   r   <module>r`      s    # $     6X44 6$,4X5O5O ,,!6x7\7\ ,,("<"< ,,H$I$I ,.!5!5 ..8#9#9 ..H$>$> ..h&K&K .r   