class JMCommand(Command): #a default response type response = [('accepted', Boolean())]
class JMMsgSignatureVerify(JMCommand): arguments = [('verif_result', Boolean()), ('nick', String()), ('fullmsg', String()), ('hostid', String())]
class JMFillResponse(JMCommand): arguments = [('success', Boolean()), ('ioauth_data', String())]
class AddUnexpectedSuccess(Command): """ Add an unexpected success. """ arguments = [(b'testName', NativeString()), (b'todo', NativeString())] response = [(b'success', Boolean())]
class TestWrite(Command): """ Write test log. """ arguments = [(b'out', NativeString())] response = [(b'success', Boolean())]
class Run(Command): """ Run a test. """ arguments = [(b'testCase', NativeString())] response = [(b'success', Boolean())]
class AddSkip(Command): """ Add a skip. """ arguments = [(b'testName', NativeString()), (b'reason', NativeString())] response = [(b'success', Boolean())]
class CameraCmd(Command): arguments = [('camera_cmd', String())] response = [('status', Boolean())] requiresAnswer = False
class JMFillResponse(JMCommand): """Returns ioauth data from MAKER if successful. """ arguments = [(b'success', Boolean()), (b'ioauth_data', JsonEncodable())]
class NavigationCmd(Command): arguments = [('speed', Float()), ('heading', Float())] response = [('status', Boolean())] requiresAnswer = False
class ManualDriveCmd(Command): arguments = [('throttle', Float()), ('steering', Float())] response = [('status', Boolean())] requiresAnswer = False
class HaltCmd(Command): arguments = [] response = [('status', Boolean())] requiresAnswer = False
class HeartbeatCmd(Command): arguments = [('enabled', Boolean())] response = [('status', Boolean())] requiresAnswer = False
class Start(Command): """ Set up the worker process, giving the running directory. """ arguments = [(b'directory', NativeString())] response = [(b'success', Boolean())]
class JMFillResponse(JMCommand): """Returns ioauth data from MAKER if successful. """ arguments = [('success', Boolean()), ('ioauth_data', String())]
class AddSuccess(Command): """ Add a success. """ arguments = [(b'testName', NativeString())] response = [(b'success', Boolean())]
class JMMsgSignatureVerify(JMCommand): """A response to a request to verify the bitcoin signature of a message-channel layer message from the daemon """ arguments = [('verif_result', Boolean()), ('nick', String()), ('fullmsg', String()), ('hostid', String())]
class EncryptedStoreSet(Command): arguments = [(b'blob', ObjBlob()), (b'type', String())] # should be providing auths Responses = [(b'done', Boolean()), (b'ttl', DateTime())] """