List Response

The ListResponse class represents a response with a list.

class newsbinpro_client.listresponse.ListResponse(response: str)

Bases: Response

Class to represent a response containing a list of items, inheriting from the Response base class.

Methods:

__init__(response: str): Initializes the ListResponse instance with the provided response and initializes the internal list. add_list_item(item: str) -> None: Adds a string item to the internal list. list_items -> list: Property to retrieve the current list of items.

add_list_item(item: str) None
Parameters:

item – The string to be added to the list.

Returns:

None

property list_items: list
Returns:

The list of items stored in the ‘_list_items’ attribute.

Return type:

list