
    _Ogm                     h    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\R                  5      rS rg	)
z2Module with class(es) representing issue comments.   )
decorators)models)users)utilsc                   l    \ rS rSrSrS rS r\R                  S 5       r	\R                  S 5       r
Srg)	IssueComment   aK  Representation of a comment left on an issue.

See also: http://developer.github.com/v3/issues/comments/

This object has the following attributes:

.. attribute:: author_association

    The association of the author (:attr:`user`) with the repository
    this issue belongs to.

.. attribute:: body

    The markdown formatted original text written by the author.

.. attribute:: body_html

    The HTML formatted comment body.

.. attribute:: body_text

    The plain-text formatted comment body.

.. attribute:: created_at

    A :class:`~datetime.datetime` object representing the date and time
    when this comment was created.

.. attribute:: html_url

    The URL to view this comment in a browser.

.. attribute:: id

    The unique identifier for this comment.

.. attribute:: issue_url

    The URL of the parent issue in the API.

.. attribute:: updated_at

    A :class:`~datetime.datetime` object representing the date and time
    when this comment was most recently updated.

.. attribute:: user

    A :class:`~github3.users.ShortUser` representing the author of this
    comment.
c                 F   US   U l         US   U l        US   U l        US   U l        US   U l        U R                  US   5      U l        US   U l        US   U l        US	   U l	        U R                  US
   5      U l
        [        R                  " US   U 5      U l        g )Nurlauthor_associationbody	body_html	body_text
created_athtml_urlid	issue_url
updated_atuser)_apir   r   r   r   	_strptimer   r   r   r   r   r   	ShortUserr   )selfcomments     [/Users/admin/workspace/ai/Jarvis/env/lib/python3.13/site-packages/github3/issues/comment.py_update_attributesIssueComment._update_attributes<   s    EN	")*>"?FO	 - -..)>?
+$- -..)>?OOGFOT:	    c                 6    SU R                   R                   S3$ )Nz<IssueComment [z]>)r   loginr   s    r   _reprIssueComment._reprI   s      144r   c                 Z    U R                  U R                  U R                  5      SS5      $ )z%Delete this comment.

:returns: bool
   i  )_boolean_deleter   r!   s    r   deleteIssueComment.deleteL   s$     }}T\\$))4c3??r   c                     U(       aE  U R                  U R                  U R                  SU0S9S5      nU(       a  U R                  U5        gg)zpEdit this comment.

:param str body: (required), new body of the comment, Markdown
    formatted
:returns: bool
r   )json   TF)_json_patchr   r   )r   r   r+   s      r   editIssueComment.editT   sH     ::DIIVTN;SD ''-r   )r   r   r   r   r   r   r   r   r   r   r   N)__name__
__module____qualname____firstlineno____doc__r   r"   r   requires_authr(   r/   __static_attributes__ r   r   r   r      sH    1f;5 @ @  r   r   c                 t    0 nU S;   a  XS'   US;   a  XS'   [         R                  " U5      nU(       a  X#S'   U$ )z~Properly format parameters for issue comments.

.. warning::

    This is not a public API designed for users of github3.py.

)createdupdatedsort)ascdesc	directionsince)r   timestamp_parameter)r<   r?   r@   paramss       r   issue_comment_paramsrC   f   sH     F%%vO#'{%%e,EwMr   N)	r5    r   r   r   r   
GitHubCorer   rC   r8   r   r   <module>rF      s.    8    [6$$ [|r   