An ebook/comic library service and web client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
484 B

"""Model definitions for the api module."""
from typing import Any, List, Optional
class APIResponse: # pylint: disable=too-few-public-methods
"""Custom class to wrap api responses."""
def __init__(self,
payload: Any,
status: int = 200,
options: Optional[List[str]] = None) -> None:
"""Construct an APIResponse object."""
self.payload = payload
self.status = status
self.options = options