
    #Ii-                     ^    S SK rS SKrSSKJr   " S S\R
                  R                  5      rg)    N   )Constsc                   8   \ 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 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)PullRequestComment*   z
This class represents PullRequestComments. The reference can be found here https://docs.github.com/en/rest/reference/pulls#review-comments
c                 z    U R                  U R                  R                  U R                  R                  S.5      $ )N)iduser)get__repr___idvalue_userselfs    ?/venv/lib/python3.13/site-packages/github/PullRequestComment.py__repr__PullRequestComment.__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PullRequestComment.body2   &    
 	tzz*zzr   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   
_commit_idr   r   s    r   	commit_idPullRequestComment.commit_id:   &    
 	t/$$$r   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: datetime.datetime
)r   _created_atr   r   s    r   
created_atPullRequestComment.created_atB   *    
 	t//0%%%r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   
_diff_hunkr   r   s    r   	diff_hunkPullRequestComment.diff_hunkJ   r    r   c                 d    U R                  U R                  5        U R                  R                  $ z
:type: integer
)r   r   r   r   s    r   r	   PullRequestComment.idR   s$    
 	txx(xx~~r   c                 d    U R                  U R                  5        U R                  R                  $ r,   )r   _in_reply_to_idr   r   s    r   in_reply_to_id!PullRequestComment.in_reply_to_idZ   s*    
 	t334##)))r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _original_commit_idr   r   s    r   original_commit_id%PullRequestComment.original_commit_idb   s*    
 	t778''---r   c                 d    U R                  U R                  5        U R                  R                  $ r,   )r   _original_positionr   r   s    r   original_position$PullRequestComment.original_positionj   s*    
 	t667&&,,,r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _pathr   r   s    r   pathPullRequestComment.pathr   r   r   c                 d    U R                  U R                  5        U R                  R                  $ r,   )r   	_positionr   r   s    r   positionPullRequestComment.positionz   &    
 	t~~.~~###r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _pull_request_urlr   r   s    r   pull_request_url#PullRequestComment.pull_request_url   s*    
 	t556%%+++r   c                 d    U R                  U R                  5        U R                  R                  $ r"   )r   _updated_atr   r   s    r   
updated_atPullRequestComment.updated_at   r&   r   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   _urlr   r   s    r   urlPullRequestComment.url   s$    
 	tyy)yyr   c                 d    U R                  U R                  5        U R                  R                  $ r   )r   	_html_urlr   r   s    r   html_urlPullRequestComment.html_url   rB   r   c                 d    U R                  U R                  5        U R                  R                  $ )z,
:type: :class:`github.NamedUser.NamedUser`
)r   r   r   r   s    r   r
   PullRequestComment.user   r   r   c                 T    U R                   R                  SU R                  5      u  pg)z
:calls: `DELETE /repos/{owner}/{repo}/pulls/comments/{number} <https://docs.github.com/en/rest/reference/pulls#review-comments>`_
:rtype: None
DELETEN)
_requesterrequestJsonAndCheckrM   )r   headersdatas      r   deletePullRequestComment.delete   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}/pulls/comments/{number} <https://docs.github.com/en/rest/reference/pulls#review-comments>`_
:param body: string
:rtype: None
r   PATCH)inputN)
isinstancestrrW   rX   rM   _useAttributes)r   r   post_parametersrY   rZ   s        r   editPullRequestComment.edit   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}/pulls/comments/{number}/reactions
        <https://docs.github.com/en/rest/reference/reactions#list-reactions-for-a-pull-request-review-comment>`_
:return: :class: :class:`github.PaginatedList.PaginatedList` of :class:`github.Reaction.Reaction`

/reactionsNAcceptrY   )githubPaginatedListReactionrW   rM   r   mediaTypeReactionsPreviewr   s    r   get_reactions PullRequestComment.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$ )a   
:calls: `POST /repos/{owner}/{repo}/pulls/comments/{number}/reactions
        <https://docs.github.com/en/rest/reference/reactions#create-reaction-for-a-pull-request-review-comment>`_
:param reaction_type: string
:rtype: :class:`github.Reaction.Reaction`
contentPOSTrg   rh   )r_   rY   T)	completed)	r`   ra   rW   rX   rM   r   rm   rj   rl   )r   reaction_typerc   rY   rZ   s        r   create_reaction"PullRequestComment.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}/pulls/comments/{comment_id}/reactions/{reaction_id}
        <https://docs.github.com/en/rest/reference/reactions#delete-a-pull-request-comment-reaction>`_
:param reaction_id: integer
:rtype: bool
rV   z/reactions/rh   ri      )r`   intrW   requestJsonrM   r   rm   )r   reaction_idstatus_s       r   delete_reaction"PullRequestComment.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
        [         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)rj   GithubObjectNotSetr   r   r#   r(   r   r/   r3   r7   r;   r?   rD   rH   rL   rP   r   r   s    r   _initAttributes"PullRequestComment._initAttributes   s%   ((//
 --44!..55 --44&&--%2299#)#6#6#=#= "("5"5"<"<((//
,,33!'!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;   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	   r0   r4   r8   r<   r@   rE   rI   rM   rQ   r
   )_makeStringAttributer   r   _makeDatetimeAttributer#   r(   _makeIntAttributer   r/   r3   r7   r;   r?   rD   rH   rL   rP   _makeClassAttributerj   	NamedUserr   )r   
attributess     r   rb   !PullRequestComment._useAttributes  s   Z22:f3EFDJ*$"77
;8OPDO:%#:::l;STD*$"77
;8OPDO:--j.>?DHz)#'#9#9*EU:V#WD :-'+'@'@/0(D$ *,&*&<&<./'D# Z22:f3EFDJ#!33Jz4JKDN+%)%>%>-.&D" :%#:::l;STDJ11*U2CDDI#!66z*7MNDNZ11  **Jv,>DJ  r   )r   r   r#   r(   rP   r   r/   r3   r7   r;   r?   rD   rH   rL   r   N)__name__
__module____qualname____firstlineno____doc__r   propertyr   r   r$   r)   r	   r0   r4   r8   r<   r@   rE   rI   rM   rQ   r
   r[   rd   rn   ru   r~   r   rb   __static_attributes__ r   r   r   r   *   s^   R     % % & & % %   * * . . - -     $ $ , , & &   $ $    P"
X&0"&r   r   )github.GithubObjectrj   github.NamedUser r   r   CompletableGithubObjectr   r   r   r   <module>r      s+   H   },,DD }r   