mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 15:07: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
16
plugins/DigitalLibrary/src/DFLibraryFileUploadRequest.py
Normal file
16
plugins/DigitalLibrary/src/DFLibraryFileUploadRequest.py
Normal file
|
@ -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)
|
Loading…
Add table
Add a link
Reference in a new issue