
    {i                     (    S r SSKJr   " S S5      rg)z!Provide the InboxableMixin class.   )API_PATHc                   <    \ rS rSrSrS rS rS rS rS r	S r
S	rg
)InboxableMixin   zLInterface for :class:`.RedditBase` subclasses that originate from the inbox.c                 ^    U R                   R                  [        S   SU R                  0S9  g)a  Block the user who sent the item.

.. note::

    This method pertains only to objects which were retrieved via the inbox.

Example usage:

.. code-block:: python

    comment = reddit.comment("dkk4qjd")
    comment.block()

    # or, identically:

    comment.author.block()

blockiddataN_redditpostr   fullnameselfs    ]/home/james-whalen/.local/lib/python3.13/site-packages/praw/models/reddit/mixins/inboxable.pyr   InboxableMixin.block	   s)    & 	(7+42GH    c                 P    U R                   R                  R                  U /5        g)a=  Mark the item as collapsed.

.. note::

    This method pertains only to objects which were retrieved via the inbox.

Example usage:

.. code-block:: python

    inbox = reddit.inbox()

    # select first inbox item and collapse it message = next(inbox)
    message.collapse()

.. seealso::

    :meth:`.uncollapse`

N)r   inboxcollapser   s    r   r   InboxableMixin.collapse   s    * 	##TF+r   c                 P    U R                   R                  R                  U /5        g)a  Mark a single inbox item as read.

.. note::

    This method pertains only to objects which were retrieved via the inbox.

Example usage:

.. code-block:: python

    inbox = reddit.inbox.unread()

    for message in inbox:
        # process unread messages
        ...

.. seealso::

    :meth:`.mark_unread`

To mark the whole inbox as read with a single network request, use
:meth:`.Inbox.mark_all_read`

N)r   r   	mark_readr   s    r   r   InboxableMixin.mark_read5   s    2 	$$dV,r   c                 P    U R                   R                  R                  U /5        g)a'  Mark the item as unread.

.. note::

    This method pertains only to objects which were retrieved via the inbox.

Example usage:

.. code-block:: python

    inbox = reddit.inbox(limit=10)

    for message in inbox:
        # process messages
        ...

.. seealso::

    :meth:`.mark_read`

N)r   r   mark_unreadr   s    r   r   InboxableMixin.mark_unreadP   s    , 	&&v.r   c                 ^    U R                   R                  [        S   SU R                  0S9  g)av  Unblock a subreddit.

.. note::

    This method pertains only to objects which were retrieved via the inbox.

For example, to unblock all blocked subreddits that you can find by going
through your inbox:

.. code-block:: python

    from praw.models import SubredditMessage

    subs = set()
    for item in reddit.inbox.messages(limit=None):
        if isinstance(item, SubredditMessage):
            if (
                item.subject == "[message from blocked subreddit]"
                and str(item.subreddit) not in subs
            ):
                item.unblock_subreddit()
                subs.add(str(item.subreddit))

unblock_subredditr	   r
   Nr   r   s    r   r     InboxableMixin.unblock_subreddith   s*    2 	(#67tT]]>STr   c                 P    U R                   R                  R                  U /5        g)aE  Mark the item as uncollapsed.

.. note::

    This method pertains only to objects which were retrieved via the inbox.

Example usage:

.. code-block:: python

    inbox = reddit.inbox()

    # select first inbox item and uncollapse it
    message = next(inbox)
    message.uncollapse()

.. seealso::

    :meth:`.collapse`

N)r   r   
uncollapser   s    r   r#   InboxableMixin.uncollapse   s    , 	%%tf-r    N)__name__
__module____qualname____firstlineno____doc__r   r   r   r   r    r#   __static_attributes__r%   r   r   r   r      s%    VI*,.-6/0U6.r   r   N)r*   constr   r   r%   r   r   <module>r-      s    ' S. S.r   