mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Initial commit for the DL
This commit is contained in:
parent
e19d5545bc
commit
d972c505d0
38 changed files with 3512 additions and 0 deletions
24
plugins/DigitalLibrary/src/ResponseMeta.py
Normal file
24
plugins/DigitalLibrary/src/ResponseMeta.py
Normal file
|
@ -0,0 +1,24 @@
|
|||
# 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)
|
Loading…
Add table
Add a link
Reference in a new issue