
    ,Of                     >    d dl mZmZ d dlmZmZmZ  G d de      Zy)    )AnyDict)	AttributeNonCompletableGithubObjectNotSetc                       e Zd ZdZddZdefdZedefd       Zedefd       Z	edefd       Z
edefd	       Zd
eeef   ddfdZy)NotificationSubjectz
    This class represents Subjects of Notifications.

    The reference can be found here
    https://docs.github.com/en/rest/reference/activity#list-notifications-for-the-authenticated-user

    returnNc                 \    t         | _        t         | _        t         | _        t         | _        y N)r   _title_url_latest_comment_url_typeselfs    :lib/python3.12/site-packages/github/NotificationSubject.py_initAttributesz#NotificationSubject._initAttributes8   s    &,$*	39 %+
    c                 P    | j                  d| j                  j                  i      S )Ntitle)get__repr__r   valuer   s    r   __repr__zNotificationSubject.__repr__>   s"    $++*;*; <==r   c                 .    | j                   j                  S r   )r   r   r   s    r   r   zNotificationSubject.titleA   s    {{   r   c                 .    | j                   j                  S r   )r   r   r   s    r   urlzNotificationSubject.urlE   s    yyr   c                 .    | j                   j                  S r   )r   r   r   s    r   latest_comment_urlz&NotificationSubject.latest_comment_urlI   s    ''---r   c                 .    | j                   j                  S r   )r   r   r   s    r   typezNotificationSubject.typeM   s    zzr   
attributesc                     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!   )_makeStringAttributer   r   r   r   )r   r"   s     r   _useAttributesz"NotificationSubject._useAttributesQ   s    j 33Jw4GHDKJ11*U2CDDI:-'+'@'@L`Aa'bD$Z22:f3EFDJ  r   )r
   N)__name__
__module____qualname____doc__r   strr   propertyr   r   r   r!   r   r   r%    r   r   r	   r	   /   s    ,># > !s ! ! S   .C . .  c    Gc3h GD Gr   r	   N)typingr   r   github.GithubObjectr   r   r   r	   r,   r   r   <module>r/      s    T  M M*G4 *Gr   