Module hdrezka.api.types

API response types.

Classes

class APIResponse (*args, **kwargs)
Expand source code
class APIResponse(TypedDict):
    """Structure of a CDN/stream AJAX response."""
    success: bool
    message: str
    url: str
    quality: str
    subtitle: str
    subtitle_lns: dict[str, str]
    subtitle_def: str
    thumbnails: str

Structure of a CDN/stream AJAX response.

Ancestors

  • builtins.dict

Class variables

var message : str

The type of the None singleton.

var quality : str

The type of the None singleton.

var subtitle : str

The type of the None singleton.

var subtitle_def : str

The type of the None singleton.

var subtitle_lns : dict[str, str]

The type of the None singleton.

var success : bool

The type of the None singleton.

var thumbnails : str

The type of the None singleton.

var url : str

The type of the None singleton.

class FavoritesCatResponse (*args, **kwargs)
Expand source code
class FavoritesCatResponse(TypedDict):
    """Response after creating a favorites collection (``action=add_cat``)."""
    success: bool
    message: str
    id: int
    name: str

Response after creating a favorites collection (action=add_cat).

Ancestors

  • builtins.dict

Class variables

var id : int

The type of the None singleton.

var message : str

The type of the None singleton.

var name : str

The type of the None singleton.

var success : bool

The type of the None singleton.

class FavoritesOkResponse (*args, **kwargs)
Expand source code
class FavoritesOkResponse(TypedDict):
    """Generic favorites AJAX success payload."""
    success: bool
    message: str

Generic favorites AJAX success payload.

Ancestors

  • builtins.dict

Class variables

var message : str

The type of the None singleton.

var success : bool

The type of the None singleton.

class TrailerResponse (*args, **kwargs)
Expand source code
class TrailerResponse(TypedDict):
    """Structure of a trailer iframe AJAX response."""
    success: bool
    message: str
    code: str
    title: str
    description: str
    link: str

Structure of a trailer iframe AJAX response.

Ancestors

  • builtins.dict

Class variables

var code : str

The type of the None singleton.

var description : str

The type of the None singleton.

The type of the None singleton.

var message : str

The type of the None singleton.

var success : bool

The type of the None singleton.

var title : str

The type of the None singleton.