mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-03 01:04:35 +08:00
25 lines
658 B
Python
25 lines
658 B
Python
# Copyright (c) 2021 Ultimaker B.V.
|
|
|
|
from typing import Optional
|
|
|
|
from .PaginationMetadata import PaginationMetadata
|
|
|
|
|
|
class ResponseMeta:
|
|
"""Class representing the metadata included in a Digital Library response (if any)"""
|
|
|
|
def __init__(self,
|
|
page: Optional[PaginationMetadata] = None,
|
|
**kwargs) -> None:
|
|
"""
|
|
Creates a new digital factory project response object
|
|
:param page: Metadata related to pagination
|
|
:param kwargs:
|
|
"""
|
|
|
|
self.page = page
|
|
self.__dict__.update(kwargs)
|
|
|
|
def __str__(self) -> str:
|
|
return "Response Meta | {}".format(self.page)
|