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

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/DigitalLibrary/src/DFLibraryFileUploadRequest.py')
-rw-r--r--plugins/DigitalLibrary/src/DFLibraryFileUploadRequest.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/plugins/DigitalLibrary/src/DFLibraryFileUploadRequest.py b/plugins/DigitalLibrary/src/DFLibraryFileUploadRequest.py
new file mode 100644
index 0000000000..d9f1af1490
--- /dev/null
+++ b/plugins/DigitalLibrary/src/DFLibraryFileUploadRequest.py
@@ -0,0 +1,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)