from __future__ import annotations
from typing import TYPE_CHECKING, Mapping, Any
if TYPE_CHECKING:
from ..client_SYNC 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] def config(self,
title: str,
description: str,
resources: str,
nsfw: bool,
) -> None:
self.client.p.live_thread.config(self.idt, title, description, resources, nsfw)
[docs] def get_update(self, uuid: str) -> LiveUpdate:
return self.client.p.live_thread.get_update(self.idt, uuid)
[docs] def create_update(self, body: str) -> None:
self.client.p.live_thread.create_update(self.idt, body)
[docs] def strike_update(self, uuid: str) -> None:
self.client.p.live_thread.strike_update(self.idt, uuid)
[docs] def delete_update(self, uuid: str) -> None:
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
("")