Module hdrezka.api.types

API response types

Classes

class APIResponse (*args, **kwargs)
Expand source code
class APIResponse(TypedDict):
    """Structure of the response to any request to the API"""
    success: bool
    message: str
    url: str
    quality: str
    subtitle: str
    subtitle_lns: dict[str, str]
    subtitle_def: str
    thumbnails: str

Structure of the response to any request to the API

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 TrailerResponse (*args, **kwargs)
Expand source code
class TrailerResponse(TypedDict):
    """Structure of the response to trailer iframe request"""
    success: bool
    message: str
    code: str
    title: str
    description: str
    link: str

Structure of the response to trailer iframe request

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.