Source code for redditwarp.models.live_thread_ASYNC


from __future__ import annotations
from typing import TYPE_CHECKING, Mapping, Any
if TYPE_CHECKING:
    from ..client_ASYNC import Client

from .live_thread import LiveThread as BaseLiveThread, LiveUpdate as BaseLiveUpdate

[docs]class LiveThread(BaseLiveThread): def __init__(self, d: Mapping[str, Any], client: Client) -> None: super().__init__(d) self.client: Client = client ("")
[docs] async def config(self, title: str, description: str, resources: str, nsfw: bool, ) -> None: await self.client.p.live_thread.config(self.idt, title, description, resources, nsfw)
[docs] async def get_update(self, uuid: str) -> LiveUpdate: return await self.client.p.live_thread.get_update(self.idt, uuid)
[docs] async def create_update(self, body: str) -> None: await self.client.p.live_thread.create_update(self.idt, body)
[docs] async def strike_update(self, uuid: str) -> None: await self.client.p.live_thread.strike_update(self.idt, uuid)
[docs] async def delete_update(self, uuid: str) -> None: await self.client.p.live_thread.delete_update(self.idt, uuid)
[docs]class LiveUpdate(BaseLiveUpdate): def __init__(self, d: Mapping[str, Any], client: Client) -> None: super().__init__(d) self.client: Client = client ("")