removed unused models
# See LICENSE file for details.
"""
-Graphene ObjectType classes for subsystem modeling.
+Graphene ObjectType classes for PumpkinMCU Command Statuss.
"""
import graphene
-class Subsystem(graphene.ObjectType):
- """
- Model encapsulating subsystem functionality.
- """
-
- power_on = graphene.Boolean()
-
- def refresh(self):
- """
- Will hold code for refreshing the status of the subsystem
- model based on queries to the actual hardware.
- """
-
- print "Querying for subsystem status"
- self.power_on = not self.power_on
-
- def set_power_on(self, power_on):
- """
- Controls the power state of the subsystem
- """
-
- print "Sending new power state to subsystem"
- print "Previous State: %s" % self.power_on
- print "New State: %s" % power_on
- self.power_on = power_on
- return Status(status=True, subsystem=self)
-
-
class CommandStatus(graphene.ObjectType):
"""
Model representing execution status. This allows us to return
