Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ResponseMeta.py « src « DigitalLibrary « plugins - github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a1dbc949db17e00e7c793c39bce71c97bfd840b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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)