three.MF.V3.Tasks.RotateTurntable
1from MF.V3.Task import TaskState as MF_V3_Task_TaskState 2 3 4class RotateTurntable: 5 """* 6 Rotate the turntable. 7 8 > Request example: 9 10 ```json 11 { 12 "Task":{ 13 "Index":1, 14 "Type":"RotateTurntable", 15 "Input":15 16 } 17 } 18 ``` 19 20 > Response example: 21 22 ```json 23 { 24 "Task":{ 25 "Index":1, 26 "Type":"RotateTurntable", 27 "Input":15, 28 "State":"Completed" 29 } 30 } 31 ``` 32 """ 33 class Request: 34 35 """ 36 Client request for the `RotateTurntable` task. 37 """ 38 def __init__(self, Index: int, Type: str, Input: int): 39 # A unique identifier generated by the client. 40 self.Index = Index 41 # "RotateTurntable" 42 self.Type = Type 43 # The rotation angle in degrees. 44 self.Input = Input 45 46 class Response: 47 48 """ 49 Server response for the `RotateTurntable` task. 50 """ 51 def __init__(self, Index: int, Type: str, Input: int, State: MF_V3_Task_TaskState = None, Error: str = None): 52 # The unique identifier generated by the client. 53 self.Index = Index 54 # "RotateTurntable" 55 self.Type = Type 56 # The requested rotation angle in degrees. 57 self.Input = Input 58 # The current state of the task. 59 self.State = State 60 # A string describing the error if the task has failed. 61 self.Error = Error 62 63 def __init__(self): 64 pass
class
RotateTurntable:
5class RotateTurntable: 6 """* 7 Rotate the turntable. 8 9 > Request example: 10 11 ```json 12 { 13 "Task":{ 14 "Index":1, 15 "Type":"RotateTurntable", 16 "Input":15 17 } 18 } 19 ``` 20 21 > Response example: 22 23 ```json 24 { 25 "Task":{ 26 "Index":1, 27 "Type":"RotateTurntable", 28 "Input":15, 29 "State":"Completed" 30 } 31 } 32 ``` 33 """ 34 class Request: 35 36 """ 37 Client request for the `RotateTurntable` task. 38 """ 39 def __init__(self, Index: int, Type: str, Input: int): 40 # A unique identifier generated by the client. 41 self.Index = Index 42 # "RotateTurntable" 43 self.Type = Type 44 # The rotation angle in degrees. 45 self.Input = Input 46 47 class Response: 48 49 """ 50 Server response for the `RotateTurntable` task. 51 """ 52 def __init__(self, Index: int, Type: str, Input: int, State: MF_V3_Task_TaskState = None, Error: str = None): 53 # The unique identifier generated by the client. 54 self.Index = Index 55 # "RotateTurntable" 56 self.Type = Type 57 # The requested rotation angle in degrees. 58 self.Input = Input 59 # The current state of the task. 60 self.State = State 61 # A string describing the error if the task has failed. 62 self.Error = Error 63 64 def __init__(self): 65 pass
* Rotate the turntable.
Request example:
{
"Task":{
"Index":1,
"Type":"RotateTurntable",
"Input":15
}
}
Response example:
{
"Task":{
"Index":1,
"Type":"RotateTurntable",
"Input":15,
"State":"Completed"
}
}
class
RotateTurntable.Request:
34 class Request: 35 36 """ 37 Client request for the `RotateTurntable` task. 38 """ 39 def __init__(self, Index: int, Type: str, Input: int): 40 # A unique identifier generated by the client. 41 self.Index = Index 42 # "RotateTurntable" 43 self.Type = Type 44 # The rotation angle in degrees. 45 self.Input = Input
Client request for the RotateTurntable
task.
class
RotateTurntable.Response:
47 class Response: 48 49 """ 50 Server response for the `RotateTurntable` task. 51 """ 52 def __init__(self, Index: int, Type: str, Input: int, State: MF_V3_Task_TaskState = None, Error: str = None): 53 # The unique identifier generated by the client. 54 self.Index = Index 55 # "RotateTurntable" 56 self.Type = Type 57 # The requested rotation angle in degrees. 58 self.Input = Input 59 # The current state of the task. 60 self.State = State 61 # A string describing the error if the task has failed. 62 self.Error = Error
Server response for the RotateTurntable
task.
RotateTurntable.Response( Index: int, Type: str, Input: int, State: MF.V3.Task.TaskState = None, Error: str = None)
52 def __init__(self, Index: int, Type: str, Input: int, State: MF_V3_Task_TaskState = None, Error: str = None): 53 # The unique identifier generated by the client. 54 self.Index = Index 55 # "RotateTurntable" 56 self.Type = Type 57 # The requested rotation angle in degrees. 58 self.Input = Input 59 # The current state of the task. 60 self.State = State 61 # A string describing the error if the task has failed. 62 self.Error = Error