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

DFLibraryFileUploadRequest.py « src « DigitalLibrary « plugins - github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: d9f1af1490a8b145e547925a2b0a78046026e18c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Copyright (c) 2021 Ultimaker B.V.
# Cura is released under the terms of the LGPLv3 or higher.

# Model that represents the request to upload a file to a DF Library project
from .BaseModel import BaseModel


class DFLibraryFileUploadRequest(BaseModel):

    def __init__(self, content_type: str, file_name: str, file_size: int, library_project_id: str, **kwargs) -> None:

        self.content_type = content_type
        self.file_name = file_name
        self.file_size = file_size
        self.library_project_id = library_project_id
        super().__init__(**kwargs)