
    #IiJ"                     ^    S SK rS SKrSSKJr   " S S\R
                  R                  5      rg)    N   )Constsc                       \ 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 rS rS rS rS rS rS rSrg)IssueComment)   z
This class represents IssueComments. The reference can be found here https://docs.github.com/en/rest/reference/issues#comments
c                 z    U R                  U R                  R                  U R                  R                  S.5      $ )N)iduser)get__repr___idvalue_userselfs    9/venv/lib/python3.13/site-packages/github/IssueComment.py__repr__IssueComment.__repr__.   s*    txx~~tzz?O?O PQQ    c                 d    U R                  U R                  5        U R                  R                  $ z
:type: string
)_completeIfNotSet_bodyr   r   s    r   bodyIssueComment.body1   &    
 	tzz*zzr   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: datetime.datetime
)r   _created_atr   r   s    r   
created_atIssueComment.created_at9   *    
 	t//0%%%r   c                 d    U R                  U R                  5        U R                  R                  $ )z
:type: integer
)r   r   r   r   s    r   r	   IssueComment.idA   s$    
 	txx(xx~~r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   
_issue_urlr   r   s    r   	issue_urlIssueComment.issue_urlI   s&    
 	t/$$$r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _updated_atr   r   s    r   
updated_atIssueComment.updated_atQ   r!   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _urlr   r   s    r   urlIssueComment.urlY   s$    
 	tyy)yyr   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   	_html_urlr   r   s    r   html_urlIssueComment.html_urla   s&    
 	t~~.~~###r   c                 d    U R                  U R                  5        U R                  R                  $ )z,
:type: :class:`github.NamedUser.NamedUser`
)r   r   r   r   s    r   r
   IssueComment.useri   r   r   c                 T    U R                   R                  SU R                  5      u  pg)z
:calls: `DELETE /repos/{owner}/{repo}/issues/comments/{id} <https://docs.github.com/en/rest/reference/issues#comments>`_
:rtype: None
DELETEN)
_requesterrequestJsonAndCheckr.   )r   headersdatas      r   deleteIssueComment.deleteq   s"    
 ;;HdhhOr   c                     [        U[        5      (       d   U5       eSU0nU R                  R                  SU R                  US9u  p4U R                  U5        g)z
:calls: `PATCH /repos/{owner}/{repo}/issues/comments/{id} <https://docs.github.com/en/rest/reference/issues#comments>`_
:param body: string
:rtype: None
r   PATCH)inputN)
isinstancestrr8   r9   r.   _useAttributes)r   r   post_parametersr:   r;   s        r   editIssueComment.editx   s`     $$$*d*$D
 ;;TXX_ < 
 	D!r   c                     [         R                  R                  [         R                  R                  U R                  U R                   S3SS[
        R                  0S9$ )a	  
:calls: `GET /repos/{owner}/{repo}/issues/comments/{id}/reactions
        <https://docs.github.com/en/rest/reference/reactions#list-reactions-for-an-issue-comment>`_
:return: :class: :class:`github.PaginatedList.PaginatedList` of :class:`github.Reaction.Reaction`

/reactionsNAcceptr:   )githubPaginatedListReactionr8   r.   r   mediaTypeReactionsPreviewr   s    r   get_reactionsIssueComment.get_reactions   sU     ##11OO$$OOxxj
#v??@ 2 
 	
r   c                 
   [        U[        5      (       d   U5       eSU0nU R                  R                  SU R                   S3US[
        R                  0S9u  p4[        R                  R                  U R                  X4SS9$ )z
:calls: `POST /repos/{owner}/{repo}/issues/comments/{id}/reactions
        <https://docs.github.com/en/rest/reference/reactions#create-reaction-for-an-issue-comment>`_
:param reaction_type: string
:rtype: :class:`github.Reaction.Reaction`
contentPOSTrH   rI   )r@   r:   T)	completed)	rA   rB   r8   r9   r.   r   rN   rK   rM   )r   reaction_typerD   r:   r;   s        r   create_reactionIssueComment.create_reaction   s     ---<}<-}
 ;;xxj
#!v??@	 < 
 ''RV'WWr   c                     [        U[        5      (       d   U5       eU R                  R                  SU R                   SU 3S[
        R                  0S9u  n  nUS:H  $ )z
:calls: `DELETE /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions/{reaction_id}
        <https://docs.github.com/en/rest/reference/reactions#delete-an-issue-comment-reaction>`_
:param reaction_id: integer
:rtype: bool
r7   z/reactions/rI   rJ      )rA   intr8   requestJsonr.   r   rN   )r   reaction_idstatus_s       r   delete_reactionIssueComment.delete_reaction   sj     +s++8[8+22xxjK=1v??@ 3 
1
 }r   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)rK   GithubObjectNotSetr   r   r   r%   r)   r-   r1   r   r   s    r   _initAttributesIssueComment._initAttributes   s    ((//
!..55&&-- --44!..55''..	,,33((//
r   c                 (   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        SU;   a  U R                  US   5      U l        SU;   a  U R                  US   5      U l	        SU;   a3  U R                  [        R                  R                  US   5      U l        g g )	Nr   r   r	   r&   r*   r.   r2   r
   )_makeStringAttributer   _makeDatetimeAttributer   _makeIntAttributer   r%   r)   r-   r1   _makeClassAttributerK   	NamedUserr   )r   
attributess     r   rC   IssueComment._useAttributes   s   Z22:f3EFDJ:%#:::l;STD:--j.>?DH*$"77
;8OPDO:%#:::l;STDJ11*U2CDDI#!66z*7MNDNZ11  **Jv,>DJ  r   )r   r   r1   r   r%   r)   r-   r   N)__name__
__module____qualname____firstlineno____doc__r   propertyr   r   r	   r&   r*   r.   r2   r
   r<   rE   rO   rV   r_   rd   rC   __static_attributes__ r   r   r   r   )   s    R     & &   % % & &   $ $    P"
X&0r   r   )github.GithubObjectrK   github.NamedUser r   rb   CompletableGithubObjectr   ru   r   r   <module>rz      s+   F   j6&&>> jr   