
    #Ii                     Z    S SK rS SKrS SKr " S S\R                  R
                  5      rg)    Nc                       \ rS rSrSrS r\S 5       r\S 5       r\S 5       r	\S 5       r
\S 5       r\S	 5       r\S
 5       r\S 5       r\S 5       rS rS rS rS rS rSrg)Notification#   z
This class represents Notifications. The reference can be found here https://docs.github.com/en/rest/reference/activity#notifications
c                 z    U R                  U R                  R                  U R                  R                  S.5      $ )N)idsubject)get__repr___idvalue_subjectselfs    9/venv/lib/python3.13/site-packages/github/Notification.py__repr__Notification.__repr__(   s*    txx~~$--BUBU VWW    c                 d    U R                  U R                  5        U R                  R                  $ z
:type: string
)_completeIfNotSetr
   r   r   s    r   r   Notification.id+   s$    
 	txx(xx~~r   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: datetime.datetime
)r   _last_read_atr   r   s    r   last_read_atNotification.last_read_at3   s*    
 	t112!!'''r   c                 d    U R                  U R                  5        U R                  R                  $ )z.
:type: :class:`github.Repository.Repository`
)r   _repositoryr   r   s    r   
repositoryNotification.repository;   *    
 	t//0%%%r   c                 d    U R                  U R                  5        U R                  R                  $ )z@
:type: :class:`github.NotificationSubject.NotificationSubject`
)r   r   r   r   s    r   r   Notification.subjectC   s&    
 	t}}-}}"""r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _reasonr   r   s    r   reasonNotification.reasonK   &    
 	t||,||!!!r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _subscription_urlr   r   s    r   subscription_urlNotification.subscription_urlS   s*    
 	t556%%+++r   c                 d    U R                  U R                  5        U R                  R                  $ )z
:type: bool
)r   _unreadr   r   s    r   unreadNotification.unread[   r'   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _updated_atr   r   s    r   
updated_atNotification.updated_atc   r    r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _urlr   r   s    r   urlNotification.urlk   s$    
 	tyy)yyr   c                 T    U R                   R                  SU R                  5      u  pg)zq
:calls: `PATCH /notifications/threads/{id} <https://docs.github.com/en/rest/reference/activity#notifications>`_
PATCHN)
_requesterrequestJsonAndCheckr6   r   headersdatas      r   mark_as_readNotification.mark_as_reads   s&     ;;HH
r   c                     U R                   R                  SU R                  R                  5      u  p[        R
                  R                  U R                   XSS9$ )z.
:type: :class:github.PullRequest.PullRequest
GETT	completed)r:   r;   r   r6   githubPullRequestr<   s      r   get_pull_requestNotification.get_pull_request|   sO     ;;E4<<CSCST!!--OOWd . 
 	
r   c                     U R                   R                  SU R                  R                  5      u  p[        R
                  R                  U R                   XSS9$ )z"
:type: :class:github.Issue.Issue
rB   TrC   )r:   r;   r   r6   rE   Issuer<   s      r   	get_issueNotification.get_issue   sF     ;;E4<<CSCST||!!$//7D!QQr   c                    [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l        [         R                  R                  U l	        [         R                  R                  U l
        g )N)rE   GithubObjectNotSetr
   r   r   r$   r)   r-   r1   r5   r   s    r   _initAttributesNotification._initAttributes   s    &&--#0077!..55**11!'!4!4!;!;**11!..55''..	r   c                    SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a2  U R	                  [
        R                  R                  US   5      U l        SU;   a2  U R	                  [
        R                  R                  US   5      U l	        SU;   a  U R                  US   5      U l
        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l        S	U;   a  U R                  US	   5      U l        g g )
Nr   r   r   r   r%   r*   r.   r2   r6   )_makeStringAttributer
   _makeDatetimeAttributer   _makeClassAttributerE   
Repositoryr   NotificationSubjectr   r$   r)   _makeBoolAttributer-   r1   r5   )r   
attributess     r   _useAttributesNotification._useAttributes   sN   :00D1ABDHZ'!%!<!<Z=W!XD:%#77!!,,j.F D 
" 44**>>
9@UDM z!44Z5IJDL+%)%>%>-.&D" z!22:h3GHDL:%#:::l;STDJ11*U2CDDI r   )	r
   r   r$   r   r   r)   r-   r1   r5   N)__name__
__module____qualname____firstlineno____doc__r   propertyr   r   r   r   r%   r*   r.   r2   r6   r?   rG   rK   rP   rZ   __static_attributes__ r   r   r   r   #   s    X   ( ( & & # # " " , , " " & &  

R/Er   r   )github.GithubObjectrE   github.NotificationSubjectgithub.RepositoryrN   CompletableGithubObjectr   rc   r   r   <module>rh      s,   <  ! KE6&&>> KEr   