three.MF.V3.Tasks.SetProjector
1from MF.V3.Descriptors.Settings.Projector import Projector as MF_V3_Descriptors_Settings_Projector_Projector 2from MF.V3.Settings.Projector import Projector as MF_V3_Settings_Projector_Projector 3from MF.V3.Task import TaskState as MF_V3_Task_TaskState 4 5 6class SetProjector: 7 """* 8 Apply projector settings. 9 10 > Request example: 11 12 ```json 13 { 14 "Task":{ 15 "Index":1, 16 "Type":"SetProjector" 17 "Input":{ 18 "on":true, 19 "brightness":0.75, 20 "color":[1.0, 1.0, 1.0] 21 }, 22 } 23 } 24 ``` 25 26 > Response example: 27 28 ```json 29 { 30 "Task":{ 31 "Index":1, 32 "Type":"SetProjector" 33 "Input":{ 34 "on":true, 35 "brightness":0.75, 36 "color":[1.0, 1.0, 1.0] 37 }, 38 "Output":{ 39 "on":{"default":false,"value":true}, 40 "brightness":{"default":0.5,"max":1.0,"min":0.0,"value":0.75} 41 }, 42 "State":"Completed" 43 } 44 } 45 ``` 46 """ 47 class Request: 48 49 """ 50 Client request for the `SetProjector` task. 51 """ 52 def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Projector_Projector = None): 53 # A unique identifier generated by the client. 54 self.Index = Index 55 # "SetProjector" 56 self.Type = Type 57 # Projector settings. 58 self.Input = Input 59 60 class Response: 61 62 """ 63 Server response for the `SetProjector` task. 64 """ 65 def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Projector_Projector = None, Output: MF_V3_Descriptors_Settings_Projector_Projector = None, State: MF_V3_Task_TaskState = None, Error: str = None): 66 # The unique identifier generated by the client. 67 self.Index = Index 68 # "SetProjector" 69 self.Type = Type 70 # Requested projector settings. 71 self.Input = Input 72 # Actual projector settings after applying the requested settings. 73 self.Output = Output 74 # The current state of the task. 75 self.State = State 76 # A string describing the error if the task has failed. 77 self.Error = Error 78 79 def __init__(self): 80 pass
class
SetProjector:
7class SetProjector: 8 """* 9 Apply projector settings. 10 11 > Request example: 12 13 ```json 14 { 15 "Task":{ 16 "Index":1, 17 "Type":"SetProjector" 18 "Input":{ 19 "on":true, 20 "brightness":0.75, 21 "color":[1.0, 1.0, 1.0] 22 }, 23 } 24 } 25 ``` 26 27 > Response example: 28 29 ```json 30 { 31 "Task":{ 32 "Index":1, 33 "Type":"SetProjector" 34 "Input":{ 35 "on":true, 36 "brightness":0.75, 37 "color":[1.0, 1.0, 1.0] 38 }, 39 "Output":{ 40 "on":{"default":false,"value":true}, 41 "brightness":{"default":0.5,"max":1.0,"min":0.0,"value":0.75} 42 }, 43 "State":"Completed" 44 } 45 } 46 ``` 47 """ 48 class Request: 49 50 """ 51 Client request for the `SetProjector` task. 52 """ 53 def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Projector_Projector = None): 54 # A unique identifier generated by the client. 55 self.Index = Index 56 # "SetProjector" 57 self.Type = Type 58 # Projector settings. 59 self.Input = Input 60 61 class Response: 62 63 """ 64 Server response for the `SetProjector` task. 65 """ 66 def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Projector_Projector = None, Output: MF_V3_Descriptors_Settings_Projector_Projector = None, State: MF_V3_Task_TaskState = None, Error: str = None): 67 # The unique identifier generated by the client. 68 self.Index = Index 69 # "SetProjector" 70 self.Type = Type 71 # Requested projector settings. 72 self.Input = Input 73 # Actual projector settings after applying the requested settings. 74 self.Output = Output 75 # The current state of the task. 76 self.State = State 77 # A string describing the error if the task has failed. 78 self.Error = Error 79 80 def __init__(self): 81 pass
* Apply projector settings.
Request example:
{
"Task":{
"Index":1,
"Type":"SetProjector"
"Input":{
"on":true,
"brightness":0.75,
"color":[1.0, 1.0, 1.0]
},
}
}
Response example:
{
"Task":{
"Index":1,
"Type":"SetProjector"
"Input":{
"on":true,
"brightness":0.75,
"color":[1.0, 1.0, 1.0]
},
"Output":{
"on":{"default":false,"value":true},
"brightness":{"default":0.5,"max":1.0,"min":0.0,"value":0.75}
},
"State":"Completed"
}
}
class
SetProjector.Request:
48 class Request: 49 50 """ 51 Client request for the `SetProjector` task. 52 """ 53 def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Projector_Projector = None): 54 # A unique identifier generated by the client. 55 self.Index = Index 56 # "SetProjector" 57 self.Type = Type 58 # Projector settings. 59 self.Input = Input
Client request for the SetProjector
task.
class
SetProjector.Response:
61 class Response: 62 63 """ 64 Server response for the `SetProjector` task. 65 """ 66 def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Projector_Projector = None, Output: MF_V3_Descriptors_Settings_Projector_Projector = None, State: MF_V3_Task_TaskState = None, Error: str = None): 67 # The unique identifier generated by the client. 68 self.Index = Index 69 # "SetProjector" 70 self.Type = Type 71 # Requested projector settings. 72 self.Input = Input 73 # Actual projector settings after applying the requested settings. 74 self.Output = Output 75 # The current state of the task. 76 self.State = State 77 # A string describing the error if the task has failed. 78 self.Error = Error
Server response for the SetProjector
task.
SetProjector.Response( Index: int, Type: str, Input: MF.V3.Settings.Projector.Projector = None, Output: MF.V3.Descriptors.Settings.Projector.Projector = None, State: MF.V3.Task.TaskState = None, Error: str = None)
66 def __init__(self, Index: int, Type: str, Input: MF_V3_Settings_Projector_Projector = None, Output: MF_V3_Descriptors_Settings_Projector_Projector = None, State: MF_V3_Task_TaskState = None, Error: str = None): 67 # The unique identifier generated by the client. 68 self.Index = Index 69 # "SetProjector" 70 self.Type = Type 71 # Requested projector settings. 72 self.Input = Input 73 # Actual projector settings after applying the requested settings. 74 self.Output = Output 75 # The current state of the task. 76 self.State = State 77 # A string describing the error if the task has failed. 78 self.Error = Error