
    ,Of                    z    d dl mZ d dlmZ d dlmZmZ d dlZd dlm	Z	m
Z
mZ ddlmZ erd dlmZ  G d	 d
e
      Zy)    )annotations)datetime)TYPE_CHECKINGAnyN)	AttributeCompletableGithubObjectNotSet   )Consts)	NamedUserc                  x    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
ddZdd	Zy
)Reactionz
    This class represents Reactions.

    The reference can be found here
    https://docs.github.com/en/rest/reference/reactions

    c                \    t         | _        t         | _        t         | _        t         | _        y N)r	   _content_created_at_id_userselfs    /lib/python3.12/site-packages/github/Reaction.py_initAttributeszReaction._initAttributesA   s    (.06#)+1
    c                z    | j                  | j                  j                  | j                  j                  d      S )N)iduser)get__repr__r   valuer   r   s    r   __repr__zReaction.__repr__G   s*    txx~~tzz?O?O PQQr   c                d    | j                  | j                         | j                  j                  S r   )_completeIfNotSetr   r   r   s    r   contentzReaction.contentJ   s$    t}}-}}"""r   c                d    | j                  | j                         | j                  j                  S r   )r!   r   r   r   s    r   
created_atzReaction.created_atO   s(    t//0%%%r   c                d    | j                  | j                         | j                  j                  S r   )r!   r   r   r   s    r   r   zReaction.idT   s"    txx(xx~~r   c                d    | j                  | j                         | j                  j                  S r   )r!   r   r   r   s    r   r   zReaction.userY   s$    tzz*zzr   c                    | j                   j                  d| j                  d       d| j                   dt        j
                  i       y)z
        :calls: `DELETE /reactions/{id} <https://docs.github.com/en/rest/reference/reactions#delete-a-reaction-legacy>`_
        :rtype: None
        DELETE z/reactions/Accept)headersN)
_requesterrequestJsonAndCheck
_parentUrlr   r   mediaTypeReactionsPreviewr   s    r   deletezReaction.delete^   sH    
 	++r"#;twwi8v??@ 	, 	
r   c                    d|v r| j                  |d         | _        d|v r| j                  |d         | _        d|v r| j	                  |d         | _        d|v r3| j                  t        j                  j                  |d         | _	        y y )Nr"   r$   r   r   )
_makeStringAttributer   _makeDatetimeAttributer   _makeIntAttributer   _makeClassAttributegithubr   r   )r   
attributess     r   _useAttributeszReaction._useAttributesi   s    
" 55j6KLDM:%#:::l;STD:--j.>?DHZ11&2B2B2L2LjY_N`aDJ  r   N)returnNone)r9   str)r9   r   )r9   int)r9   r   )r7   zdict[str, Any]r9   r:   )__name__
__module____qualname____doc__r   r   propertyr"   r$   r   r   r0   r8    r   r   r   r   8   sm    2R # # & &      	
br   r   )
__future__r   r   typingr   r   github.NamedUserr6   github.GithubObjectr   r   r	   r)   r   r   r   rB   r   r   <module>rG      s2   T #  %  J J *9b& 9br   