Ë
    ×—Äjü   ã                  ó²   — d dl mZ d dlmZ d dlmZmZ d dlZd dlZd dl	Zd dl
Zd dlZd dlmZmZmZ e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y)é    )Úannotations)Údatetime)ÚTYPE_CHECKINGÚAnyN)Ú	AttributeÚCompletableGithubObjectÚNotSet)ÚIssue)ÚNotificationSubject)ÚPullRequest)Ú
Repositoryc                  óê   — e Zd ZdZdd„Zdd„Zedd„«       Zedd„«       Zedd„«       Z	edd„«       Z
edd„«       Zedd	„«       Zedd
„«       Zedd„«       Zedd„«       Zdd„Zdd„Zdd„Zdd„Zdd„Zy)ÚNotificationzã
    This class represents Notifications.

    The reference can be found here
    https://docs.github.com/en/rest/reference/activity#notifications

    The OpenAPI schema can be found at

    - /components/schemas/thread

    c                óÊ   — t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _        t         | _	        y ©N)
r	   Ú_idÚ_last_read_atÚ_reasonÚ_repositoryÚ_subjectÚ_subscription_urlÚ_unreadÚ_updated_atÚ_url©Úselfs    úXC:\Users\pivot\Documents\cueki\casual-preloader\Lib\site-packages\github/Notification.pyÚ_initAttributeszNotification._initAttributesN   sE   € Ü#)ˆŒÜ28ˆÔÜ'-ˆŒÜ28ˆÔÜ8>ˆŒÜ17ˆÔÜ(.ˆŒÜ06ˆÔÜ$*ˆ�	ó    c                óz   — | j                  | j                  j                  | j                  j                  dœ«      S )N)ÚidÚsubject)Úget__repr__r   Úvaluer   r   s    r   Ú__repr__zNotification.__repr__Y   s*   € Ø×Ñ t§x¡x§~¡~À$Ç-Á-×BUÑBUÑ VÓWÐWr   c                ód   — | j                  | j                  «       | j                  j                  S r   )Ú_completeIfNotSetr   r$   r   s    r   r!   zNotification.id\   s"   € à×Ñ˜tŸx™xÔ(Ø�x‰x�~‰~Ðr   c                ód   — | j                  | j                  «       | j                  j                  S r   )r'   r   r$   r   s    r   Úlast_read_atzNotification.last_read_ata   s(   € à×Ñ˜t×1Ñ1Ô2Ø×!Ñ!×'Ñ'Ð'r   c                ód   — | j                  | j                  «       | j                  j                  S r   )r'   r   r$   r   s    r   ÚreasonzNotification.reasonf   ó$   € à×Ñ˜tŸ|™|Ô,Ø�|‰|×!Ñ!Ð!r   c                ód   — | j                  | j                  «       | j                  j                  S r   )r'   r   r$   r   s    r   Ú
repositoryzNotification.repositoryk   ó(   € à×Ñ˜t×/Ñ/Ô0Ø×Ñ×%Ñ%Ð%r   c                ód   — | j                  | j                  «       | j                  j                  S r   )r'   r   r$   r   s    r   r"   zNotification.subjectp   s$   € à×Ñ˜tŸ}™}Ô-Ø�}‰}×"Ñ"Ð"r   c                ód   — | j                  | j                  «       | j                  j                  S r   )r'   r   r$   r   s    r   Úsubscription_urlzNotification.subscription_urlu   s(   € à×Ñ˜t×5Ñ5Ô6Ø×%Ñ%×+Ñ+Ð+r   c                ód   — | j                  | j                  «       | j                  j                  S r   )r'   r   r$   r   s    r   ÚunreadzNotification.unreadz   r,   r   c                ód   — | j                  | j                  «       | j                  j                  S r   )r'   r   r$   r   s    r   Ú
updated_atzNotification.updated_at   r/   r   c                ód   — | j                  | j                  «       | j                  j                  S r   )r'   r   r$   r   s    r   ÚurlzNotification.url„   s"   € à×Ñ˜tŸy™yÔ)Ø�y‰y�‰Ðr   c                óV   — | j                   j                  d| j                  «      \  }}y)zˆ
        :calls: `PATCH /notifications/threads/{thread_id} <https://docs.github.com/en/rest/reference/activity#notifications>`_
        ÚPATCHN©Ú
_requesterÚrequestJsonAndCheckr8   ©r   ÚheadersÚdatas      r   Úmark_as_readzNotification.mark_as_read‰   s&   € ð Ÿ™×;Ñ;ØØ�H‰Hó
‰ˆ‘r   c                óV   — | j                   j                  d| j                  «      \  }}y)z‰
        :calls: `DELETE /notifications/threads/{thread_id} <https://docs.github.com/en/rest/reference/activity#notifications>`_
        ÚDELETENr;   r>   s      r   Úmark_as_donezNotification.mark_as_done’   s&   € ð Ÿ™×;Ñ;ØØ�H‰Hó
‰ˆ‘r   c                ó€   — t         j                  j                  | j                  | j                  j                  ¬«      S ©N)r8   )Úgithubr   r<   r"   r8   r   s    r   Úget_pull_requestzNotification.get_pull_request›   s,   € Ü×!Ñ!×-Ñ-¨d¯o©oÀ4Ç<Á<×CSÑCSÐ-ÓTÐTr   c                ó€   — t         j                  j                  | j                  | j                  j                  ¬«      S rF   )rG   r
   r<   r"   r8   r   s    r   Ú	get_issuezNotification.get_issuež   s*   € Ü�|‰|×!Ñ! $§/¡/°t·|±|×7GÑ7GÐ!ÓHÐHr   c                ót  — d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r2| j                  t        j                  j                  |d   «      | _        d|v r2| j                  t        j                  j                  |d   «      | _
        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d|v r| j                  |d   «      | _        d	|v r| j                  |d	   «      | _        y y )
Nr!   r)   r+   r.   r"   r2   r4   r6   r8   )Ú_makeStringAttributer   Ú_makeDatetimeAttributer   r   Ú_makeClassAttributerG   r   r   r   r   r   Ú_makeBoolAttributer   r   r   )r   Ú
attributess     r   Ú_useAttributeszNotification._useAttributes¡   sF  € Ø�:ÑØ×0Ñ0°¸DÑ1AÓBˆDŒHØ˜ZÑ'Ø!%×!<Ñ!<¸ZÈÑ=WÓ!XˆDÔØ�zÑ!Ø×4Ñ4°ZÀÑ5IÓJˆDŒLØ˜:Ñ%Ø#×7Ñ7¼×8IÑ8I×8TÑ8TÐV`ÐamÑVnÓoˆDÔØ˜
Ñ"Ø ×4Ñ4Ü×*Ñ*×>Ñ>À
È9Ñ@UóˆDŒMð  Ñ+Ø%)×%>Ñ%>¸zÐJ\Ñ?]Ó%^ˆDÔ"Ø�zÑ!Ø×2Ñ2°:¸hÑ3GÓHˆDŒLØ˜:Ñ%Ø#×:Ñ:¸:ÀlÑ;SÓTˆDÔØ�JÑØ×1Ñ1°*¸UÑ2CÓDˆD�Ið r   N)ÚreturnÚNone)rR   Ústr)rR   r   )rR   r   )rR   r   )rR   Úbool)rR   r   )rR   r
   )rP   zdict[str, Any]rR   rS   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r%   Úpropertyr!   r)   r+   r.   r"   r2   r4   r6   r8   rA   rD   rH   rJ   rQ   © r   r   r   r   A   sâ   „ ñ
ó	+óXð òó ðð ò(ó ð(ð ò"ó ð"ð ò&ó ð&ð ò#ó ð#ð ò,ó ð,ð ò"ó ð"ð ò&ó ð&ð òó ðó
ó
óUóIôEr   r   )Ú
__future__r   r   Útypingr   r   Úgithub.GithubObjectrG   Úgithub.IssueÚgithub.NotificationSubjectÚgithub.PullRequestÚgithub.Repositoryr   r   r	   r
   r   r   r   r   r[   r   r   Ú<module>rc      sF   ðõ\ #å ß %ã Û Û !Û Û ß JÑ JáÝ"Ý>Ý.Ý,ôtEÐ*õ tEr   