Add first machines endpoint

Contributes to CL-1331
This commit is contained in:
Ian Paschal 2019-05-09 14:52:08 +02:00
parent 602258bb4a
commit dc21269834
2 changed files with 84 additions and 0 deletions

View file

@ -6,6 +6,7 @@ from PyQt5.QtCore import QObject, pyqtProperty
from cura.API.Backups import Backups
from cura.API.Interface import Interface
from cura.API.Machines import Machines
from cura.API.Account import Account
if TYPE_CHECKING:
@ -44,6 +45,9 @@ class CuraAPI(QObject):
# Backups API
self._backups = Backups(self._application)
# Machines API
self._machines = Machines(self._application)
# Interface API
self._interface = Interface(self._application)
@ -58,6 +62,10 @@ class CuraAPI(QObject):
def backups(self) -> "Backups":
return self._backups
@property
def machines(self) -> "Machines":
return self._machines
@property
def interface(self) -> "Interface":
return self._interface